Commit graph

87 commits

Author SHA1 Message Date
daikei 87145bd823 Merge branch 'develop' into allow-mods-to-see-mod-notes 2023-06-19 15:41:38 +00:00
daikei 0bc68a4b6f Fix formatting 2023-06-19 14:14:15 +00:00
daikei a3d26eaf31 Allow moderators to see moderation notes 2023-06-19 14:08:34 +00:00
ThatOneCalculator dbe00078a3
refactor: remove mk remnants 2023-06-02 23:30:51 -07:00
ThatOneCalculator afa15e17ef
refactor: make post imports an experiment 2023-05-25 22:05:43 -07:00
naskya 6dba4a145c
Format 2023-05-23 14:11:03 +09:00
naskya c7943ca177
.js 2023-05-23 14:07:35 +09:00
MeiMei 910b06c35a
fix: Escape SQL LIKE
* SQL LIKE escape
2023-05-23 13:56:16 +09:00
ThatOneCalculator b049b5bfaa
chore: formatting 2023-05-19 23:27:56 -07:00
ThatOneCalculator 83db6ec70a
forgot } 2023-05-19 23:26:01 -07:00
ThatOneCalculator c20e501d69
simpler fix, thank you @wikiyu 2023-05-19 23:22:10 -07:00
Namekuji 3ddcffd169
enhance: emoji width and height 2023-05-19 22:26:13 -04:00
Kaity A adda2816c8
Update meta to return experimentals 2023-05-14 00:18:30 +10:00
Kaity A 7f0cd17b38
fix meta update 2023-05-13 23:57:55 +10:00
Kaity A 59307392d4
add experimental feature gate 2023-05-13 23:41:36 +10:00
syuilo 6bc07036ac
feat: 投稿したコンテンツのAIによる学習を軽減するオプションを追加
Co-authored-by: GitHub <syuilo>
2023-05-10 20:50:21 -07:00
ThatOneCalculator 3adcc107ff
call it "moderation notice" 2023-05-10 14:32:27 -07:00
ThatOneCalculator a11abdde60
feat: ability for moderators to send mod mail 2023-05-10 14:06:45 -07:00
Namekuji a1645ddc5b
can overlap with blocked hosts 2023-04-30 09:04:29 -04:00
Namekuji 51858ae473
add toggler 2023-04-30 09:01:42 -04:00
Namekuji ba734a9f3c
instance silence 2023-04-30 07:27:55 -04:00
Kaity A 914355c644
Add Libre Translate support 2023-04-30 11:09:51 +10:00
Kainoa Kanter 7fb130b06e formatting 2023-04-06 18:56:46 -07:00
amybones 006bfbd42b fix: toggling the blocking state from the instance-info admin view (#9809)
Because the admin meta information was never loaded on this page, no amount of toggling the block or suspend sliders on the instance-info page (e.g. `https://calckey.example.com/instance-info/instance.tld`) will result in the instance actually being added to the blocklist. You could still do it from the bulk blocklist management page, but that can get unwieldy quickly if you just want to do a quick block of an instance.

Co-authored-by: amy bones <amy@spookygirl.boo>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9809
Co-authored-by: amybones <amybones@noreply.codeberg.org>
Co-committed-by: amybones <amybones@noreply.codeberg.org>
2023-04-04 03:46:23 +00:00
amy bones b28ba9f82f
fix: changing passwords, 2fa, and password resets.
The argon2 usage was only implemented for sign-ins which broke a bunch of other
endpoints and features.
2023-04-03 05:14:50 -07: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
Kaity A a432661e3c Expand caption limit to 1500 characters 2023-03-05 16:51:44 +10:00
ThatOneCalculator abff66eada
fix: 🐛 first user gets admin
Closes #9620

Co-authored-by: @Johann150
2023-02-12 20:19:16 -08:00
Kaity A f2371daff3 invalidate local user cache on user update 2023-02-12 07:54:59 +00:00
ThatOneCalculator abf47e54f3
clean up w/ rome 2023-01-16 11:19:20 -08:00
ThatOneCalculator 7c2dabd047
no more eslint 2023-01-12 20:54:33 -08:00
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
Kainoa Kanter 508b33e503 Admin set default reactions (#9404)
Co-authored-by: ThatOneCalculator <kainoa@t1c.dev>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9404
2023-01-05 04:06:48 +00:00
ThatOneCalculator f13e19dee1 feat: Managed hosting complete 2022-11-01 18:41:59 -07:00
ThatOneCalculator 9217d9bff5 fix 2022-09-21 13:18:12 -07:00
ThatOneCalculator a075813d30 Allow admins to set logo url 2022-09-21 13:05:59 -07:00
Johann150 74cf3d887c backend: fix lint "no-throw-literal" 2022-08-04 13:36:37 -07:00
ThatOneCalculator b3a50187b1 Recommended timeline! 2022-07-28 21:28:13 -07:00
ThatOneCalculator 1129a2ec8c Custom splash icons! 2022-07-27 10:25:30 -07:00
ThatOneCalculator 4d22797624 Custom MOTD! 2022-07-27 09:46:35 -07:00
Johann150 20763a84ee Merge: enhance privacy of notes
https://akkoma.dev/FoundKeyGang/FoundKey/pulls/14
2022-07-25 13:36:44 -07:00
nullobsi a69557f193
Add secure mode settings to Security tab 2022-07-17 15:25:40 -07:00
syuilo 75d516011b enhance: make active email validation configurable 2022-07-09 15:05:55 +09:00
syuilo e560601815
feat: auto nsfw detection (#8840)
* feat: auto nsfw detection

* ✌️

* Update ja-JP.yml

* Update ja-JP.yml

* ポルノ判定のしきい値を高めに

* エラーハンドリングちゃんとした

* Update ja-JP.yml

* 感度設定を強化

* refactor

* feat: add video support for auto nsfw detection

* rename: image -> media

* .js

* fix: add missing error handling

* fix: use valid pathname instead of using filename due to invalid usage

* perf(nsfw-detection): decode frames

* disable detection of video for some reasons

* perf(nsfw-detection): streamify detection process for video

* disable disallowUploadWhenPredictedAsPorn option

* fix(nsfw-detection): improve reliability

* fix(nsfw-detection): use Math.ceil instead of Math.round

* perf(nsfw-detection): delete tmp frames after used

* fix(nsfw-detection): FSWatcher does not emit ready event

* perf(nsfw-detection): skip black frames

* refactor: strip exists check

* Update package.json

* めっちゃ変えた

* lint

* Update COPYING

* オプションで動画解析できるように

* Update yarn.lock

* Update CHANGELOG.md

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-07-07 21:06:37 +09:00
syuilo da239b8362 chore(server): tweak api for admin 2022-07-07 19:08:18 +09:00
syuilo 423e7692db chore(server): tweak api for admin 2022-07-07 18:09:50 +09:00
CyberRex cd07eb222e
Add additional drive capacity change support (#8867)
* Add additional drive capacity change support

* Update packages/backend/src/server/api/endpoints/admin/drive-capacity-override.ts

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>

* 🎨

* show instance default capacity in placeholder

* fix

* update api/drive

* fix

* remove :

* fix lint

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2022-07-05 00:21:01 +09:00
syuilo dd426735a0 feat: moderation note 2022-07-03 00:15:03 +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