Commit Graph

77 Commits

Author SHA1 Message Date
ThatOneCalculator
acfc88389a
formatting 2023-03-30 19:10:03 -07:00
cutestnekoaqua
897b5f928d
check for signatures while post import 2023-03-30 17:52:17 +02:00
cutestnekoaqua
09aeb6e2f5
nyaa 2023-03-30 17:31:29 +02:00
Cleo
00dc860574 remove debug msgs 2023-03-30 09:30:38 +00:00
Cleo
0a79b6b9f0 Yeet mentions 2023-03-30 08:40:20 +00:00
cutestnekoaqua
eed9c63247
get post details from object 2023-03-29 21:38:52 +02:00
cutestnekoaqua
4181bee43c
catch text parsing error 2023-03-29 21:25:28 +02:00
cutestnekoaqua
2398aab82b
add info 2023-03-29 21:16:45 +02:00
cutestnekoaqua
66429527ca
catch errors 2023-03-29 21:15:06 +02:00
cutestnekoaqua
21c7f93d7a
handle mastodon style posts 2023-03-29 21:10:01 +02:00
cutestnekoaqua
7650c60cdf
dont ping users 2023-03-29 20:01:56 +02:00
cutestnekoaqua
12698bf1e8
actually increase line num 2023-03-29 19:37:31 +02:00
cutestnekoaqua
82f342cf45
update post job 2023-03-29 19:36:23 +02:00
cutestnekoaqua
220b022461
note import debug logs 2023-03-29 19:23:37 +02:00
cutestnekoaqua
450f798f12
why is this git ignored? 2023-03-29 00:09:31 +02:00
cutestnekoaqua
99b471d43b
why is this git ignored? 2023-03-28 23:48:27 +02:00
cutestnekoaqua
d5c80e74de
feat: experimental post import 2023-03-28 23:33:16 +02:00
Kaity A
706b4ae602 Add sonic full-text search support (#9714)
This pull request adds support for the [sonic](https://github.com/valeriansaliou/sonic) full text indexing server into Calckey.

In addition to this, a stateful endpoint has been added that will completely (re-)index all notes into any (elasticsearch and/or sonic) indexing server defined in your config at `/api/admin/search/index-all`. It can (optionally) take input data to define the starting point, such as:

```
{"cursor": "9beg3lx6ad"}
```

Currently if both sonic and elasticsearch are defined in the config, sonic will take precedence for searching, but both indexes will continue to be updated for new note creations. Future enhancements may include the ability to choose which indexer to use (or combine multiple).

Co-authored-by: Kaitlyn Allan <kaitlyn.allan@enlabs.cloud>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9714
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-03-19 08:26:47 +00:00
naskya
1c0d4546f7 feat: set license information for custom emojis (#9719)
Closes: #9711 (please check this issue first)

I cherry-picked two commits ([1](8ae9d2eaa8), [2](ed51209172)) from [Misskey](https://github.com/misskey-dev/misskey) and made a few changes.
「ライセンス」should be written as "License" in the following screenshots, but it has not yet been translated.

It would be nice if we could include multiple lines of text, but I just ported what's been implemented so far in Misskey not to mess things up.

This is my first pull request (aside from typo correction). Feel free to point out any issues!

![](https://cdn.discordapp.com/attachments/823878222897741868/1086372711841935440/2023-03-18_042011.png)
![](https://cdn.discordapp.com/attachments/823878222897741868/1086373178214981853/01.png)
![](https://cdn.discordapp.com/attachments/823878222897741868/1086373336709341246/2023-03-18_042629.png)

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9719
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-03-19 07:22:28 +00:00
Cleo John
111bf8b77d webhook mastodon fixes 2023-03-14 17:18:30 +01:00
ThatOneCalculator
abf47e54f3
clean up w/ rome 2023-01-16 11:19:20 -08:00
ThatOneCalculator
6b00abf05c
refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
Francis Dinh
d9b7219404
Block subdomains of blocked hosts 2022-12-24 14:46:09 -05:00
cutestnekoaqua
2f04d5f915 Create move type 2022-11-23 21:49:52 +01:00
Johann150
5a691f7e98 server: avoid adding suspended instances to deliver queue
This should reduce the performance hit when adding large numbers of
instances to the deliver queue by making the check for suspended and
dead instances a bulk operation.

Changelog: Changed
Reviewed-on: https://akkoma.dev/FoundKeyGang/FoundKey/pulls/215
2022-11-09 17:19:29 -08:00
ThatOneCalculator
6ed18667b7 feat: Allow importing follows from Pixelfed 2022-10-27 14:17:40 -07:00
ThatOneCalculator
31e9279c70 More Calckey branding 2022-08-05 14:07:40 -07:00
Johann150
74cf3d887c backend: fix lint "no-throw-literal" 2022-08-04 13:36:37 -07:00
nullobsi
2bf2eac765
Add Secure Mode and Private Mode
- Add instance actor
- Add private mode, which uses an allowlist
- Add Secure Mode, restricts access to blocked instances
2022-07-17 15:25:39 -07:00
yzhe819
9107de63b4
chore: fix lint errors (#8981) 2022-07-10 19:47:29 +09:00
syuilo
eccc90c843
feat: Log user ips (#8872)
* wip

* store ip and headers

* Update admin-file.vue

* require admin for view ip/headers

* IP (recent) 消した

* admin必須

* opt in

* clean ips periodically

* respect logging setting in drive/files/create
2022-07-02 15:12:11 +09:00
MeiMei
6f8e3fe366
enhance: Redisをioredisに統一してIPv6サポート (#8869)
* Use ioredis, Supports IPv6 host

https://github.com/misskey-dev/misskey/issues/8862

* Fix import

* order

* a

* i

* fix

* flushdb

* family

* CHANGELOG

* redis_version

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-06-24 19:22:19 +09:00
Johann150
c56e45ecef
fix: always remove completed tasks (#8771) 2022-05-31 17:54:02 +09:00
Johann150
ebc2566130
fix: add missing import
fix #8756
2022-05-29 14:33:42 +02:00
Johann150
9c80403072
use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00
Johann150
e27c6abaea
refactor: temporary files (#8713)
* simplify temporary files for thumbnails

Because only a single file will be written to the directory, creating a
separate directory seems unnecessary. If only a temporary file is created,
the code from `createTemp` can be reused here as well.

* refactor: deduplicate code for temporary files/directories

To follow the DRY principle, the same code should not be duplicated
across different files. Instead an already existing function is used.

Because temporary directories are also create in multiple locations,
a function for this is also newly added to reduce duplication.

* fix: clean up identicon temp files

The temporary files for identicons are not reused and can be deleted
after they are fully read. This condition is met when the stream is closed
and so the file can be cleaned up using the events API of the stream.

* fix: ensure cleanup is called when download fails

* fix: ensure cleanup is called in error conditions

This covers import/export queue jobs and is mostly just wrapping all
code in a try...finally statement where the finally runs the cleanup.

* fix: use correct type instead of `any`
2022-05-25 16:50:22 +09:00
syuilo
ec3be7e4d3 enhance(webhook): add userId to payload 2022-04-03 22:42:01 +09:00
syuilo
f8e6f3cc73 improve webhook 2022-04-03 22:36:30 +09:00
syuilo
8e5f2690f2
feat: Webhook (#8457)
* feat: introduce webhook

* wip

* wip

* wip

* Update CHANGELOG.md
2022-04-02 15:28:49 +09:00
syuilo
1c67c26bd8
refactor: migrate to typeorm 3.0 (#8443)
* wip

* wip

* wip

* Update following.ts

* wip

* wip

* wip

* Update resolve-user.ts

* maxQueryExecutionTime

* wip

* wip
2022-03-26 15:34:00 +09:00
syuilo
ac8c66f5ab perf(server): refactor and performance improvements 2022-03-25 16:27:41 +09:00
syuilo
544b5ba838
perf(server): reduce memory usage of redis 2022-03-19 19:34:04 +09:00
syuilo
caadc0978a feat: introduce bull dashboard 2022-03-19 19:08:55 +09:00
syuilo
2442592ef1 feat: アンケート終了通知
Resolve #4664
2022-03-06 16:06:27 +09:00
syuilo
e68278f93e feat: 時限ミュート
#7677
2022-03-04 20:23:53 +09:00
syuilo
c8070fc544 fix esm 2022-03-01 01:36:50 +09:00
syuilo
2e89b21544 fix esm 2022-03-01 01:34:53 +09:00
syuilo
d071d18dd7
refactor: Use ESM (#8358)
* wip

* wip

* fix

* clean up

* Update tsconfig.json

* Update activitypub.ts

* wip
2022-02-27 11:07:39 +09:00
syuilo
b6db709e02 refacator: fix typw 2022-02-19 14:53:33 +09:00
syuilo
0afebcfd9e enhance: improve federation chart 2022-02-10 17:45:12 +09:00