Commit graph

193 commits

Author SHA1 Message Date
Namekuji
9d26e08032 add cache prefix 2023-07-02 20:55:20 -04:00
Namekuji
ef724a49fe store cache values to redis 2023-07-02 20:37:46 -04:00
ThatOneCalculator
6c7f0521aa find and replace 2023-07-02 15:18:30 -07:00
ThatOneCalculator
466ef220da Revert "Merge pull request '[PR]: fix: use redis-based mutex to prevent memory leak' (#10389) from nmkj/calckey:fix-cache-leak into develop"
This reverts commit 224b1d585bb1cb95531a9213cf4a69fc2f049e7d, reversing
changes made to b5907fb86db2b9eacea633bb5d69547982326afa.
2023-07-02 10:10:25 -07:00
Namekuji
7aa05c26e9 set log level to debug 2023-07-02 02:03:14 -04:00
Namekuji
9b721da06d fix: use redis-semaphore for global mutex and memory leak prevention 2023-07-02 01:47:11 -04:00
ThatOneCalculator
6a5e9ab9d4 feat: display remaining time on ratelimits 2023-06-22 17:14:27 -07:00
naskya
b8b0abb453 fix: 🐛 proper isDuplicateKeyValueError handling
Closes #10340
Co-authored-by: Kainoa Kanter <kainoa@t1c.dev>
2023-06-22 16:25:27 -07:00
ThatOneCalculator
ebcc50634b chore: formatting 2023-06-08 11:01:00 -07:00
Konni (im Schloss)
1e54de1cba fixes #10284, fixes #10208; passing in all pugVariables needed in base.pug, fixes csp 2023-06-07 20:35:24 +02:00
Freeplay
37156d236f Prevent newly-made unlisted posts from showing in antennas 2023-06-04 17:52:44 -04:00
ThatOneCalculator
04d4d21f74 fix: summary if 1 attachment 2023-06-02 23:55:31 -07:00
ThatOneCalculator
decdb6490c chore: formatting 2023-06-02 23:21:06 -07:00
Kainoa Kanter
bc8c1dc2fe Merge pull request '[PR]: feat: rust backend model and utilities' (#10250) from nmkj/calckey:native-model into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10250
2023-06-03 06:00:46 +00:00
ThatOneCalculator
117f95799b refactor: ♻️ sync note summaries 2023-06-02 22:11:34 -07:00
Namekuji
3bfb1a0cf0 add format script 2023-06-02 23:48:27 -04:00
Namekuji
b0a7970ac7 fix native import 2023-06-02 23:48:26 -04:00
Namekuji
bd5fbb1e3a use native generators 2023-06-02 23:48:25 -04:00
Namekuji
399b0e96dc use cuid2 with timestamp 2023-05-28 22:16:42 -04:00
ThatOneCalculator
5f27c462bb chore: formatting 2023-05-22 17:00:50 -07:00
Kainoa Kanter
d2041db91f Nyanize non[consonant]
🟨🟪

https://calckey.social/notes/9f2l6x5u8e
2023-05-22 15:57:56 +00:00
naskya
4d87266d13 files may be undefined 2023-05-21 05:34:39 +09:00
ThatOneCalculator
b728c7f722 Revert "fix api doc?"
This reverts commit 9e366dc563d376680f277db0d323fb5aa60e5c24.
2023-05-19 23:21:00 -07:00
ThatOneCalculator
ec29e55e62 fix api doc? 2023-05-19 23:14:59 -07:00
Namekuji
53a8e3ffc2 enhance: emoji width and height 2023-05-19 22:26:13 -04:00
naskya
35c8dbcfca format 2023-05-18 20:50:24 +09:00
naskya
490ede7caa Check alt text on mutes 2023-05-18 20:38:33 +09:00
naskya
007cb0e747 format 2023-05-07 09:46:07 +09:00
MeiMei
a23b4a4b36 (partially) cherry-picked from misskey/10e526b
fix: Escape SQL LIKE

* SQL LIKE escape

* CHANGELOG
2023-05-07 09:16:46 +09:00
naskya
a14a41b27c oops 2023-05-05 12:49:34 +09:00
naskya
59a53d8f64 Fix regex hard mutes 2023-05-05 12:36:17 +09:00
naskya
9e62df0c8f Fix channel bug 2023-05-05 07:47:03 +09:00
naskya
c99badde3e clean up 2023-05-05 06:16:23 +09:00
naskya
ecc0dd9a9b Use original (Misskey's) implementation for hard mutes as muted reason isn't needed 2023-05-05 05:48:31 +09:00
naskya
7b58910de8 I was confused 2023-05-05 05:26:59 +09:00
naskya
467575801b Fix missing return, typo 2023-05-05 05:22:32 +09:00
naskya
f023992ab0 Fix missing arguments 2023-05-05 05:17:16 +09:00
naskya
4e60fa7193 format 2023-05-04 14:41:18 +09:00
naskya
4207ff51e7 Merge branch 'develop' into fix/word-mutes 2023-05-04 05:36:29 +00:00
naskya
775eb75428 Differentiate soft mutes and hard mutes 2023-05-04 14:20:06 +09:00
naskya
d09fc8be2b Refactor hard word mutes 2023-05-04 13:17:37 +09:00
Kaity A
5bfe6c0730 Merge remote-tracking branch 'origin/develop' into hk/edit-federation 2023-05-02 18:24:54 +10:00
Kaity A
6a509637d5 Implement inbound note edit federation 2023-05-01 02:29:50 +10:00
Namekuji
c35f03832d format 2023-04-30 08:08:45 -04:00
Namekuji
ada759a9e5 rename and comment 2023-04-30 07:58:03 -04:00
Namekuji
ce60660128 instance silence 2023-04-30 07:27:55 -04:00
naskya
0ef179e35f feat: per-user boost muting (#9825)
Cherry-picked from FoundKey/c414f24a2c ([commit](c414f24a2c))

This allows us to hide specified users' boosts from the timelines (the boosts will still be visible on their user page).

Co-authored-by: Hélène <pleroma-dev@helene.moe>
Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9825
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-08 05:44:36 +00:00
amy bones
3819e921cc feat: give reason for soft mutes
Bad UX when a post is muted and it just says "Some chick said something". Now
provide some context too to help people decide if they want to view something
potentially triggering.
2023-04-05 21:28:26 -07:00
ThatOneCalculator
19c4a59513 formatting 2023-03-30 19:10:03 -07:00
ThatOneCalculator
5be627b869 feat: 🔒 add argon2 support
Passwords will be automatically re-hashed on sign-in. All new password hashes will be argon2 by default.  This uses argon2id and is not configurable. In the very unlikely case someone has more specific needs, a fork is recommended.  ChangeLog: Added  Co-authored-by: Chloe Kudryavtsev <code@toast.bunkerlabs.net>

Breaks Calckey -> Misskey migration, but fixes Foundkey -> Calckey migration
2023-03-30 19:09:44 -07:00
cutestnekoaqua
624f305d9c feat: experimental post import 2023-03-28 23:33:16 +02:00
ThatOneCalculator
ae9ba9b2c3 Revert "refactor: nyaize on the frontend"
This reverts commit aff90b3ef225e5d4453469b36b7bf3a8565c7a68.
2023-03-23 09:06:32 -07:00
ThatOneCalculator
887673ecdd refactor: nyaize on the frontend 2023-03-19 19:59:00 -07:00
Kaity A
be4d51fcad Expand caption limit to 1500 characters 2023-03-05 16:51:44 +10:00
ThatOneCalculator
9d2ccab7f5 chore: formatting 2023-02-17 13:01:14 -08:00
ThatOneCalculator
301c03e97f chore: remove hard-to-see gradient 2023-02-17 00:16:35 -08:00
ThatOneCalculator
75c53f783a perf: emoji lib performance fix 2023-02-17 00:01:22 -08:00
ThatOneCalculator
fc285bb645 fix: 💄 admin overview style 2023-02-13 20:21:42 -08:00
ThatOneCalculator
57aed1fed9 chore: formatting 2023-02-11 17:22:05 -08:00
Kaity A
2b030a0a8c Implementation of an instances wide antenna source. (#9604)
This PR contains new source for antenna posts, which is a list of instance hostnames to process all posts from.

Using this mode, a user can filter for keywords on an instance wide basis.

This change includes a new antenna source called `instances` and a new database column in the `antenna` table called `instances` to store the instance names.

On the antenna editor, there's also an "Add an instance" finder dialog to allow users to search through the known instance hostnames.

Co-authored-by: Kaity A <supakaity@blahaj.zone>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9604
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-02-12 01:20:17 +00:00
cutestnekoaqua
b1e3c2e1c7 feat: v1 Mastodon API
This commit adds (maybe unstable) support for Mastodons v1 api
also some v2 endpoints, maybe I miss stuff, I dont know.
We will need to test this but it should be kinda stable
and work like (old) butter.

Co-authored-by: Natty <natty.sh.git@gmail.com>
Co-authored-by: cutls <web-pro@cutls.com>
2023-02-09 23:21:50 +01:00
cutestnekoaqua
029eb6a521 fix: reactions using unicode weren't processed 2023-02-05 12:37:01 +01:00
ThatOneCalculator
9afe5424c0 chore: formatting 2023-02-04 12:41:25 -08:00
cutestnekoaqua
cc594a68aa fix: Use ❤️ instead of ♥️ 2023-02-04 02:30:43 +01:00
ThatOneCalculator
619b925d12 fix: 🐛 signin with ipv6
co-authored-by: Syuilo
2023-01-24 15:13:25 -08:00
ThatOneCalculator
a71dab09a5 Revert "hopefully this fixed chat updates"
This reverts commit bbbfbc1061fbced2c8ccf4879597305ab0d89157.
2023-01-19 16:33:14 -08:00
ThatOneCalculator
be05847383 fix: heart reaction 2023-01-19 16:17:20 -08:00
ThatOneCalculator
1da7464ee7 clean up w/ rome 2023-01-16 11:19:20 -08:00
cutestnekoaqua
1b43766322 chore: change code commit of pictogram to emoji 2023-01-13 19:40:49 +01:00
cutestnekoaqua
f8d901179c fix: return only first emoji but fully 2023-01-13 18:49:10 +01:00
ThatOneCalculator
bb61a9684b Remove usused eslint files 2023-01-12 22:27:17 -08:00
ThatOneCalculator
cca9a7d7cf Revert "fix: heart reactions"
This reverts commit 620dedab47bfee796e7de0f9cfb85288c4539a8e.
2023-01-12 21:41:43 -08:00
ThatOneCalculator
ac64087a1e no more eslint 2023-01-12 20:54:33 -08:00
ThatOneCalculator
2aab2de38d refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
cutestnekoaqua
43b0e3f76e fix: heart reactions 2023-01-12 23:14:45 +01:00
ThatOneCalculator
d371857f15 improve note summary 2023-01-10 09:39:48 -08:00
Kainoa Kanter
d9d124cbf0 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
a6324564e2 fixes 2023-01-03 09:12:26 -08:00
Daikei!
79776677a1 add .js to the end of two type-scripts, fixing a critical error that crashes calckey 2022-12-27 15:38:05 +00:00
Francis Dinh
8ff259f573 Block subdomains of blocked hosts 2022-12-24 14:46:09 -05:00
ThatOneCalculator
f6eec87c50 Merge branch 'develop' into account_migration 2022-12-06 15:34:50 -08:00
Kaity A
1f6f139ca1 Remove deadtime optimisation in skippedInstances check 2022-12-06 13:53:39 +00:00
Kainoa Kanter
29c1b81f12 Merge pull request 'develop' (#9178) from develop into account_migration
Reviewed-on: https://codeberg.org/thatonecalculator/calckey/pulls/9178
2022-12-04 06:26:26 +00:00
cutestnekoaqua
db52926594 Implement recieve moveTo
Untested, hopefully it works..

Signed-off-by: cutestnekoaqua <waterdev@galaxycrow.de>
2022-12-03 01:23:02 +01:00
syuilo
bf87e9586b improve performance (merge deepClone from Misskey dev) 2022-11-18 17:28:58 -08:00
ThatOneCalculator
f3f63a5dc1 AVIF support 2022-11-14 18:53:38 -08:00
Johann150
98682a45ea server: reduce dead instance detection to 7 days 2022-11-09 17:19:49 -08:00
Johann150
49686050cc backend: fix lint "no-throw-literal" 2022-08-04 13:36:37 -07:00
Johann150
d6faae48f2 fix spelling error 2022-08-04 13:34:18 -07:00
Johann150
dc793c86f8 fix lints 2022-07-27 19:46:56 -07:00
Chloe Kudryavtsev
7459dc0819 backend: improve mutes and blocks
Mutes and blocks now also apply recursively to replies and renotes.
Furthermore, any mentioned user being muted or blocked will also apply.
2022-07-27 19:46:26 -07:00
Johann150
fed2085138 Merge: enhance privacy of notes
https://akkoma.dev/FoundKeyGang/FoundKey/pulls/14
2022-07-25 13:36:44 -07:00
ThatOneCalculator
7d91257317 Less cluttered notifications 2022-07-23 21:30:42 -07:00
Acid Chicken (硫酸鶏)
bfce689abc fix(server): make sure getFileInfo doesn't fail if detectSensitivity ever fails (#9020) 2022-07-19 17:09:21 +09:00
syuilo
da51152662 enhance(server): tweak identicon generation 2022-07-09 13:22:35 +09:00
syuilo
ed5d81859f 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
Johann150
746f17450f refactor: remove duplicate code (#8895) 2022-06-27 21:48:10 +09:00
Johann150
d78b20ba07 fix lints 2022-06-24 12:44:22 +02:00
Johann150
6c244d452e enhance: word mute checks CW (#8873) 2022-06-23 20:26:47 +09:00
tamaina
566e0d2bea feat: Add Badge Image to Push Notification (#8012)
* fix

* nanka iroiro

* wip

* wip

* fix lint

* fix loginId

* fix

* refactor

* refactor

* remove follow action

* clean up

* Revert "remove follow action"

This reverts commit defbb416480905af2150d1c92f10d8e1d1288c0a.

* Revert "clean up"

This reverts commit f94919cb9cff41e274044fc69c56ad36a33974f2.

* remove fetch specification

* renoteの条件追加

* apiFetch => cli

* bypass fetch?

* fix

* refactor: use path alias

* temp: add submodule

* remove submodule

* enhane: unison-reloadに指定したパスに移動できるように

* null

* null

* feat: ログインするアカウントのIDをクエリ文字列で指定する機能

* null

* await?

* rename

* rename

* Update read.ts

* merge

* get-note-summary

* fix

* swパッケージに

* add missing packages

* fix getNoteSummary

* add webpack-cli

* ✌️

* remove plugins

* sw-inject分離したがテストしてない

* fix notification.vue

* remove a blank line

* disconnect intersection observer

* disconnect2

* fix notification.vue

* remove a blank line

* disconnect intersection observer

* disconnect2

* fix

* ✌️

* clean up config

* typesを戻した

* backend/src/web/index.ts

* notification-badges

* add scripts

* change create-notification.ts

* Update packages/client/src/components/notification.vue

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* disconnect

* oops

* Failed to load the script unexpectedly回避
sw.jsとlib.tsを分離してみた

* truncate notification

* Update packages/client/src/ui/_common_/common.vue

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* clean up

* clean up

* refactor

* キャッシュ対策

* Truncate push notification message

* fix

* クライアントがあったらストリームに接続しているということなので通知しない判定の位置を修正

* components/drive-file-thumbnail.vue

* components/drive-select-dialog.vue

* components/drive-window.vue

* merge

* fix

* Service Workerのビルドにesbuildを使うようにする

* return createEmptyNotification()

* fix

* fix

* i18n.ts

* update

* ✌️

* remove ts-loader

* fix

* fix

* enhance: Service Workerを常に登録するように

* pollEnded

* pollEnded

* URLをsw.jsに戻す

* clean up

* fix lint

* changelog

* alpha-test

* also with twemoji

* add isMimeImage function

* catch

* Colour => Color

* char2file => char2filePath

* Update autocomplete.vue

* remove clone?

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-06-20 00:33:46 +09:00