summaryrefslogtreecommitdiff
path: root/packages/backend/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(backend): Remove Meilisearch index when notes are deleted (#10988)Caipira2023-07-083-3/+26
| | | | | | | | | | | | * fix(backend): Include feature to delete Meilisearch index notes * Update variable name `cascadingNotesFilter` -> `federatedLocalCascadingNotes` * tweak --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): Reduce memory usage of MemoryKVCache (#11076)tamaina2023-07-082-17/+64
| | | | | * perf(backend): Reduce memory usage of MemoryKVCache * fix
* fix: add suuport Japanese message of errors. (#11159)SASAGAWA Kiyoshi2023-07-081-1/+3
| | | | | | | | | | | * fix: add suuport Japanese message of errors. * fix: change catching function. * lint --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(frontend): search user with trailing space (#11184)nomad2023-07-082-0/+2
| | | | | | | | | | | * fix(frontend): search user with trailing space * fix(backend): search user with trailing space * Update search.ts --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): use limit() instead of take()syuilo2023-07-0870-75/+75
|
* fix(backend): ↵CyberRex2023-07-081-2/+22
| | | | | | | ジョブキュー再試行時のタイミングずれによるエラーを抑制 (#11035) * fix(backend): ジョブキュー再試行時のタイミングずれによるエラーを抑制 * fix lint
* refactor(backend): `core/activitypub/models` (#11067)okayurisotto2023-07-087-247/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cleanup(`ApImageService.ts`) * refactor(`ApImageService.ts`) * cleanup(`check-https.ts`) * cleanup(`ApMentionService.ts`) * refactor(`ApMentionService.ts`) * cleanup(`ApNoteService.ts`): unneeded `eslint-disable-next-line` * cleanup(`ApNoteService.ts`) * WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる * refactor(`ApNoteService.ts`): function return type * cleanup(`ApNoteService.ts`): deadcode * refactor(`ApNoteService.ts`): `eslint-disable-next-line` * refactor(`ApNoteService.ts`): non-null assertion これまでは`getApId()`の方でエラーがスローされていた。 * cleanup(`ApNoteService.ts`): unneeded await * refactor(`ApNoteService.ts`): note.attachment - `toArray()`を使うように - よくわからない条件式を整理 - `as`をなくすために`promiseLimit()`でジェネリクスを使うように * cleanup(`ApNoteService.ts`) * refactor(`ApNoteService.ts`): よりよい型定義 `res`が`null`でないことは確認されているようだったので`null`とのunionはなくした * refactor(`ApNoteService.ts`): 不要な条件を削除 * cleanup(`ApNoteService.ts`) * cleanup(`ApNoteService.ts`): 重要でない`as`を削除 * refactor(`ApNoteService.ts`): `eslint-disable-next-line` * cleanup(`ApNoteService.ts`): deadcode * cleanup(`ApNoteService.ts`): unneeded non-null assertion * refactor(`ApNoteService.ts`): 不要な条件を削除 * WIP(`ApNoteService.ts`): `as`をなくす エラーメッセージを考える * cleanup(`ApNoteService.ts`): 不要な`as`を削除 * cleanup(`ApPersonService.ts`): `no-unused-vars` * cleanup(`ApPersonService.ts`): deadcode * refactor(`ApPersonService.ts`): function return type * cleanup(`ApPersonService.ts`): deadcode * cleanup(`ApPersonService.ts`): deadcode * WIP(`ApPersonService.ts`): `as`を調整 `null`でないか確認する処理が続いていたので型アサーションは`null`とのunionにした。 より本質的な改善の余地があるように感じるのでひとまずWIPとしてコミット。 * refactor(`ApPersonService.ts`): `eslint-disable-next-line` * WIP(`ApPersonService.ts`): `as any`をなくした エラーをスローするようにせざるを得なかったのでエラーメッセージを考える必要がある。 * WIP(`ApNoteService.ts`): non-null assertion non-nullアサーションを減らすために事前に存在確認をするようにした。 エラーをスローするようにしたのでメッセージを考えなければならない。 * refactor(`ApNoteService.ts`): non-null assertion -> optional chaining * refactor(`ApPersonService.ts`): `eslint-disable-next-line` * refactor(`ApPersonService.ts`): `eslint-disable-next-line` * refactor(`ApPersonService.ts`): function return type * refactor(`ApPersonService.ts`): type guardによるnon-null assertionの削除 * WIP(`ApPersonService.ts`): `analyzeAttachments` - Field型を事前に定義しておくように - `attachments`が`IObject`だった場合、返り値が`{ fields: [] }`になるようだが構わないのか? - `toArray()`を通すべきでは? * Revert "WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる" This reverts commit aeefb843a8a688f8a356794e8981c58f8a2733af. * cleanup(`ApImageService.ts`): `import` * refactor(`ApImageService.ts`): 冗長だった部分を短く * cleanup(`ApMentionService.ts`): `import` * refactor(`ApImageService.ts`): `JSON.stringify()`でのindentationを追加 * cleanup(`ApNoteService.ts`): `import` * cleanup(`ApNoteService.ts`) * cleanup(`ApNoteService.ts`) * cleanup(`ApNoteService.ts`) * cleanup(`ApNoteService.ts`): `any`に対するnon-null assertion * refactor(`ApNoteService.ts`): 添付ファイル * cleanup(`ApPersonService.ts`): `import` * refactor(`ApPersonService.ts`): より実情に即した`as`に * cleanup(`ApPersonService.ts`) * refactor(`ApPersonService.ts`): 冗長だった部分を修正 * cleanup(`ApPersonService.ts`): deadcode * cleanup(`ApPersonService.ts`) * cleanup(`ApQuestionService.ts`): `import` * refactor(`ApQuestionService.ts`): `eslint-disable-next-line` * refactor(`ApQuestionService.ts`): `eslint-disable-next-line` * cleanup(`ApQuestionService.ts`) * refactor(`ApQuestionService.ts`): non-null assertionを消した * cleanup(`ApQuestionService.ts`) * WIP(`ApQuestionService.ts`): non-null assertionを消す エラーメッセージを考える必要がある。 * refactor(`ApQuestionService.ts`): `any`を消す * refactor(`ApQuestionService.ts`): function return type * WIP(`ApPersonService.ts`): 可読性の低い三項演算子を削除しつつnon-null assertionを回避 エラーメッセージを考える必要がある。 * cleanup(`ApPersonService.ts`): 不必要な三項演算子を削除 * cleanup(`ApPersonService.ts`): 不要な`as` * cleanup(`ApPersonService.ts`) * refactor(`ApPersonService.ts`) * refactor(`ApPersonService.ts`): 可読性の低い三項演算子を削除 元の実装が悪いと判断し`null`かどうかの確認をより厳密に行うようにした。 * cleanup(`ApPersonService.ts`) * cleanup(`ApPersonService.ts`) * refactor(`ApPersonService.ts`): 返り値を`void`に統一 この返り値を参照しているコードは見当たらなかった。 また、普通に意味がない値であるように見受けられた。 * fixup! refactor(`ApPersonService.ts`): 返り値を`void`に統一 * refactor(`ApNoteService.ts`) * refactor(`ApPersonService.ts`) * cleanup(`ApPersonService.ts`) * cleanup(`ApPersonService.ts`) * refactor(`ApPersonService.ts`): 返り値の`void`統一と条件式の調整 この返り値を参照しているコードは見当たらなかった。 また、普通に意味がない値であるように見受けられた。 * cleanup(`ApQuestionService.ts`) * refactor(`ApQuestionService.ts`) * refactor(`ApQuestionService.ts`) * refactor(`tag.ts`): function return type * fixup! enhance: account migration (#10592) * fixup! WIP(`ApPersonService.ts`): 可読性の低い三項演算子を削除しつつnon-null assertionを回避 * fixup! cleanup(`ApPersonService.ts`): 不要な`as` * refactor: エラーメッセージを見繕った * Revert "cleanup(`ApImageService.ts`): `import`" This reverts commit 1454d04c377eaf46013b0f3c3ce664a4034fd53a. * Revert "cleanup(`ApMentionService.ts`): `import`" This reverts commit 244f6720c134a3434e33c1caf6e3e0c2c87b58f5. * Revert "cleanup(`ApNoteService.ts`): `import`" This reverts commit d8f0d769733c4cb0629821b04e557a0ae6f5ff5b. * Revert "cleanup(`ApPersonService.ts`): `import`" This reverts commit 5190ef954caf376da46c707f52e02208d53caafd. # Conflicts: # packages/backend/src/core/activitypub/models/ApPersonService.ts * Revert "cleanup(`ApQuestionService.ts`): `import`" This reverts commit 778585e2882477fec5f11fabf398b4b89cf26da2. * processRemoteMoveはそのままにしてほしい * Revert "fixup! refactor(`ApPersonService.ts`): 返り値を`void`に統一" This reverts commit 083cd678abcd64325b9628895366c03b893e42ca. * Revert "refactor(`ApPersonService.ts`): 返り値を`void`に統一" This reverts commit bfa0fcd6f01a6e519ea0c68017358f9980d2ed96. --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* 広告の曜日を設定できるように (#10095)nenohi2023-07-084-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 曜日選択できるように * ラベル選択でもチェックが変更されるように * adを参照しないといけないかも * smallint -> integer * 異物混入だったので取りだし * タイムゾーン指定(Date2つ使うのなんか違和感 * 未テスト * これにすると出てこないかも * UIチョット変更 * UI変更 fix bug * 畳むように修正 * dayofweek->dayOfWeek * マイグレ時にnot null,default設定してるのでnullable:falseでよさそう * コメントの記載 * Update packages/backend/src/server/api/endpoints/meta.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* use enginessyuilo2023-07-081-6/+0
|
* nodeの推奨(デフォルト)バージョンと最小バージョンを分離syuilo2023-07-081-1/+1
|
* fix(backend): deliverManyにcontentのnullチェックを追加tamaina2023-07-071-0/+2
| | | | https://github.com/MisskeyIO/misskey/pull/99
* fixtamaina2023-07-071-2/+0
|
* perf(backend): use mutex for nsfw model loading (#11109)popkirby2023-07-081-1/+9
| | | Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* cleanup: trim trailing whitespace (#11136)okayurisotto2023-07-0888-490/+492
| | | | | | | | | * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): Improve performance of FetchInstanceMetadata (#11128)Yuriha2023-07-072-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Perf: Avoid retries to acquire lock in fetchInstanceMetadata * Fix * Add Changelog * Fix typo * Fix lint * 記法をMisskey式にする * ???? * refactor https://github.com/misskey-dev/misskey/pull/11128#pullrequestreview-1518059366 * refactor * getいらない? * fix * fix * Update CHANGELOG.md * clean up --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* update depssyuilo2023-07-072-7/+8
|
* refactor(backend): ↵okayurisotto2023-07-061-9/+9
| | | | | | | | | | | | | ノート削除時の`findCascadingNotes`の処理を整理 (#11131) * refactor(backend): ノート削除時の`findCascadingNotes`の処理を整理 * cleanup: unneeded async await Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* エスケープせずにDescriptionを出力、Update info-card.pug (#11108)EdamAme2023-07-061-1/+1
| | | | | HTMLのタグがエスケープされ、 misskey-hub.netのサーバー一覧で、iframeで読み込む際にタグがそのまま出力される状況が発生していた。 pugにおける仕様に則り、!=に変更、エスケープを行わないように。
* refactor(`ApDbResolverService.ts`): ↵okayurisotto2023-07-061-20/+12
| | | | | | | URLを扱う複雑な正規表現をURLインターフェイスで置き換え (#11123) * refactor(`ApDbResolverService.ts`): URLを扱う複雑な正規表現をURLインターフェイスで置き換え * fixup! refactor(`ApDbResolverService.ts`): URLを扱う複雑な正規表現をURLインターフェイスで置き換え
* refactor: ApDeliverManagerService.tsの型とJSDocを適切に置き換え ↵Umisyo(Souta Kusunoki)2023-07-051-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | (#11096) * refactor: ApDeliverManagerService.ts のanyを適切な型に置き換え Signed-off-by: Umisyo <kusunokisouta@gmail.com> * fix: quote to single quote Signed-off-by: Umisyo <kusunokisouta@gmail.com> * refactor: JSDocを実態に合わせて修正 Signed-off-by: Umisyo <kusunokisouta@gmail.com> * fix: activityのnullを許容するよう変更 Signed-off-by: Umisyo <kusunokisouta@gmail.com> --------- Signed-off-by: Umisyo <kusunokisouta@gmail.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* perf(backend): Use addBulk to add deliver queues (#11114)tamaina2023-07-052-10/+45
|
* perf(backend): JSON.parse の呼び出しを削減する (#11091)riku64602023-07-041-5/+11
| | | | | | | | | | | * perf(backend): JSON.parse の呼び出しを削減する Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com> * Update CHANGELOG.md --------- Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com>
* perf(backend): make some features optionablesyuilo2023-07-026-7/+69
| | | | | Resolve #11064 Resolve #11065
* perf(backend): allow get for some endpointssyuilo2023-07-022-0/+4
|
* feat(backend): accept OAuth bearer token (#11052)Kagami Sascha Rosylight2023-06-282-31/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): accept OAuth bearer token * refactor * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * fix * kind: permission for account moved error * also for suspended error * Update packages/backend/src/server/api/StreamingApiServerService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(backend): APIエラーのHTTP status code変更 (#11047)Kagami Sascha Rosylight2023-06-261-2/+6
|
* refactor(backend): use node16 for moduleResolution (#10938)syuilo2023-06-2519-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor(backend): use node16 for moduleResolution * update deps * Update tsconfig.json * :v: * revive KEYWORD * restore strict-event-emitter-types dependency * restore ms dependency * cancel redundant import reorder * fix * Delete ms.ts * remove rndstr --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
* refactor(backend): replace rndstr with secureRndstr (#11044)Kagami Sascha Rosylight2023-06-2511-33/+30
| | | | | | | * refactor(backend): replace rndstr with secureRndstr * Update pnpm-lock.yaml * .js
* refactor(backend): replace private-ip with ipaddr.js (#11041)Kagami Sascha Rosylight2023-06-252-10/+10
| | | | | * refactor(backend): replace private-ip with ipaddr.js * restore ip-cidr
* update depssyuilo2023-06-241-1/+1
|
* fix(backend): Resolve missing parseObjectId in IdService (#11039)Caipira2023-06-231-2/+2
|
* fix: clear queue endpoint error with redis script (#11037)Balazs Nadasdi2023-06-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Error message: ``` ReplyError: ERR value is not an integer or out of range script: 720d973b3877f92b4fb3285ced83c97cdd204979, on @user_script:209. ``` The whole error can be tracked back to one of the arguments, which is `Infinity` in the codebase, but it has to be a number. The documentation in bullmq says `0` is unlimited[^1], and bullmq tries to parse the argument with `tonumber` which returns with `-9223372036854775808` if the argument is `"Infinity"` which is out of bound. ``` 127.0.0.1:6379> eval 'return tonumber(ARGV[3])' '2' 'slippy.xyz:queue:inbox:inbox:delayed' 'slippy.xyz:queue:inbox:inbox:events' 'slippy.xyz:queue:inbox:inbox:' '1687183763944' Infinity 'delayed' (integer) -9223372036854775808 127.0.0.1:6379> ``` [^1]: https://github.com/taskforcesh/bullmq/blob/master/src/commands/cleanJobsInSet-2.lua#L10 Signed-off-by: Efertone <efertone@pm.me>
* ユーザー統計表示機能を削除syuilo2023-06-133-234/+0
| | | | Resolve #10998
* tweak of f3a16bcd6syuilo2023-06-105-12/+2
|
* ロールのユーザーリストを非公開にできるように (#10987)nenohi2023-06-104-0/+12
| | | | | * ロールのユーザーリストを非公開にできるように * Changelog update
* fix(backend): キャッシュが溜まり続けないようにsyuilo2023-06-109-13/+116
| | | | Related #10984
* enhance(backend): ↵syuilo2023-06-091-6/+5
| | | | | | WebSocketのPing/Pongをプロトコル制御フレームの物で判別する Resolve #10969
* choresyuilo2023-06-091-0/+1
|
* エラー画像URLを設定可能に (#10959)Ebise Lutica2023-06-096-43/+79
| | | | | | | | | | | * エラー画像URLを設定可能に * Update CHANGELOG.md * 設定したエラーアイコンをprefetchするようにbase.pugを変更 * 不足していたデータを追加 * enhance(frontend): デザイン調整
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2023-06-091-2/+2
|\
| * fix: correctly check the sensitivity flag (#10976)Outvi V2023-06-091-2/+2
| |
* | add notesyuilo2023-06-091-0/+1
|/
* Fix: #10955 TypeError: JSON5.parse is not a function (#10956)CaffeeLake2023-06-051-1/+1
| | | | | | | | | | | * Fix: JSON5.parse is not a function * update changelog * update chglog --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix(backend): ↵tamaina2023-06-051-1/+1
| | | | | | pageのピン留めを解除することができない問題を修正 Fix #10950
* fix typo: schema -> schemesyuilo2023-06-051-3/+3
|
* fix(backend): ↵syuilo2023-06-021-0/+1
| | | | | | 7日経過して無効化されたアンテナを再度有効化する方法がない問題を修正 Fix #10476
* update depssyuilo2023-06-022-2/+2
|
* perf(backend): terminate stalled websocket connectionssyuilo2023-06-021-2/+21
| | | | Resolve #10885
* fix(backend): i/notificationsのsinceIdが機能しない問題を修正syuilo2023-06-011-3/+3
| | | | Fix #10902
* fix(backend): ↵syuilo2023-05-302-5/+3
| | | | | | 「アクセストークンの管理」画面でアプリの情報が表示されない問題を修正 Fix #10920