summaryrefslogtreecommitdiff
path: root/packages/backend/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* メンションの最大数をロールごとに設定可能にする (#13343)Yuriha2024-02-294-2/+22
| | | | | | | | | | | | | | | | | | | | | * Add new role policy: maximum mentions per note * fix * Reviewを反映 * fix * Add ChangeLog * Update type definitions * Add E2E test * CHANGELOG に説明を追加 --------- Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
* fix(backend): ↵zyoshoka2024-02-291-0/+8
| | | | | | | | | ダイレクトなノートに対してはダイレクトでしか返信できないように (#13477) * fix(backend): ダイレクトなノートに対してはダイレクトでしか返信できないように * Update CHANGELOG.md * test(backend): `notes/create`とWebSocket関連のテストを追加
* enhance: 通知の履歴をリセットできるように (#13335)かっこかり2024-02-295-0/+50
| | | | | | | | | | | | | | | * enhance: 通知の履歴をリセットできるように * Update Changelog * 通知欄も連動して更新するように * revert some changes * Update CHANGELOG.md * Remove unused part * fix
* fix typesyuilo2024-02-291-1/+1
|
* enhance(backend): ↵taichan2024-02-285-127/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 通知がミュート・凍結を考慮するようにする (#13412) * Never return broken notifications #409 Since notifications are stored in Redis, we can't expect relational integrity: deleting a user will *not* delete notifications that mention it. But if we return notifications with missing bits (a `follow` without a `user`, for example), the frontend will get very confused and throw an exception while trying to render them. This change makes sure we never expose those broken notifications. For uniformity, I've applied the same logic to notes and roles mentioned in notifications, even if nobody reported breakage in those cases. Tested by creating a few types of notifications with a `notifierId`, then deleting their user. (cherry picked from commit 421f8d49e5d7a8dc3a798cc54716c767df8be3cb) * Update Changelog * Update CHANGELOG.md * enhance: 通知がミュートを考慮するようにする * enhance: 通知が凍結も考慮するようにする * fix: notifierIdがない通知が消えてしまう問題 * Add tests (通知がミュートを考慮しているかどうか) * fix: notifierIdがない通知が消えてしまう問題 (grouped) * Remove unused import * Fix: typo * Revert "enhance: 通知が凍結も考慮するようにする" This reverts commit b1e57e571dfd9a7d8b2430294473c2053cc3ea33. * Revert API handling * Remove unused imports * enhance: Check if notifierId is valid in NotificationEntityService * 通知作成時にpackしてnullになったらあとの処理をやめる * Remove duplication of valid notifier check * add filter notification is not null * Revert "Remove duplication of valid notifier check" This reverts commit 239a6952f717add53d52c3e701e7362eb1987645. * Improve performance * Fix packGrouped * Refactor: 判定部分を共通化 * Fix condition * use isNotNull * Update CHANGELOG.md * filterの改善 * Refactor: DONT REPEAT YOURSELF Note: GroupedNotificationはNotificationの拡張なのでその例外だけ書けば基本的に共通の処理になり複雑な個別の処理は増えにくいと思われる * Add groupedNotificationTypes * Update misskey-js typedef * Refactor: less sql calls * refactor * clean up * filter notes to mark as read * packed noteがmapなのでそちらを使う * if (notesToRead.size > 0) * if (notes.length === 0) return; * fix * Revert "if (notes.length === 0) return;" This reverts commit 22e2324f9633bddba50769ef838bc5ddb4564c88. * :art: * console.error * err * remove try-catch * 不要なジェネリクスを除去 * Revert (既読処理をpack内で行うものを元に戻す) * Clean * Update packages/backend/src/core/entities/NotificationEntityService.ts * Update packages/backend/src/core/entities/NotificationEntityService.ts * Update packages/backend/src/core/entities/NotificationEntityService.ts * Update packages/backend/src/core/entities/NotificationEntityService.ts * Update packages/backend/src/core/NotificationService.ts * Clean --------- Co-authored-by: dakkar <dakkar@thenautilus.net> Co-authored-by: kakkokari-gtyih <daisho7308+f@gmail.com> Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix(backend): ↵zyoshoka2024-02-281-1/+9
| | | | | | | | | | | | | | | | | リノート時のHTLへのストリーミングの意図しない挙動を修正 (#13425) * fix(backend): リノート時のストリーミングの意図しない挙動を修正 * Update CHANGELOG.md * fix: 不要な返り値 * fix: 不適切な条件分岐を修正 * test(backend): add htl tests --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* refactor(backend): ノートのエクスポート処理でStreams ↵okayurisotto2024-02-283-79/+146
| | | | | | | | | | | | | | APIを使うように (#13465) * refactor(backend): ノートのエクスポート処理でStreams APIを使うように * fixup! refactor(backend): ノートのエクスポート処理でStreams APIを使うように `await`忘れにより、ジョブがすぐに完了したことになり削除されてしまっていた。 それによって、`NoteStream`内での`updateProgress`メソッドの呼び出しで、`Missing key for job`のエラーが発生することがあった。 --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* enhance(backend): ↵zyoshoka2024-02-283-1/+11
| | | | | | | | | フォロー・フォロワー関連の通知の受信設定の強化 (#13468) * enhance(backend): 通知の受信設定に「フォロー中またはフォロワー」を追加 * fix(backend): 通知の受信設定で「相互フォロー」が正しく動作しない問題を修正 * Update CHANGELOG.md
* Enhance: ↵zawa-ch2024-02-274-8/+39
| | | | | | | コンディショナルロールの条件に「マニュアルロールへのアサイン」を追加 (#13463) * コンディショナルロールの条件に「マニュアルロールへのアサイン」を追加 * コメント修正
* fix(backend): fix incorrect schemas (#13458)zyoshoka2024-02-262-1/+7
|
* admin/emoji/updateの必須項目を減らす 等 (#13449)FineArchs2024-02-252-9/+23
| | | | | | | | | | | | | | | | | * admin/emoji/update enhancement * add CustomEmojiService.getEmojiByName * update endpoint * fix * Update update.ts * Update autogen files * type assertion * Update CHANGELOG.md
* fix: 古いキャッシュを使うのを修正 (#13453)tamaina2024-02-258-27/+27
|
* refactorsyuilo2024-02-242-1/+16
|
* enhance?: ↵tamaina2024-02-234-1/+6
| | | | DeleteAccountServiceでユーザーを削除する際にuserChangeDeletedStateを発行する (#13382)
* enhance: ↵tamaina2024-02-233-23/+52
| | | | | | | | | リモートのフォロワーから再度Followが来た場合、acceptを返してあげる (#13388) * enhance: リモートのフォロワーから再度Followが来た場合、acceptを返してあげる * nanka meccha kaeta * ブロックチェックの後にフォロー関係の存在チェックをする
* fix(backend): ↵okayurisotto2024-02-231-1/+1
| | | | より多くの人に使われているハッシュタグが検索結果上位に来るように (#11498) (#13340)
* fix: ↵tamaina2024-02-234-0/+23
| | | | | | | | | プッシュ通知の変更が1時間ほど反映されない問題を修正 (#13407) * fix: プッシュ通知の変更が1時間ほど反映されない問題を修正 * 410 to refresh * refreshCache
* refactor(backend): ↵okayurisotto2024-02-2316-18/+29
| | | | | | | `Array.prototype.filter`での非null確認では`isNotNull`関数を使うように (#13442) * `Array.prototype.filter`での非null確認では`isNotNull`関数を使うように * `{}` -> `NonNullable<unknown>`
* fix: SSR時のmetaをエスケープするように (#13440)かっこかり2024-02-231-2/+2
| | | | | * fix: SSR時のmetaをエスケープするように * エスケープ方法を変更
* enhance: `meta`をSSR HTMLに埋め込む (#13436)かっこかり2024-02-237-419/+521
| | | | | | | | | | | | | | | | | * enhance: `meta`をSSR HTMLに埋め込む * HTML Metaの有効時間を指定 * 1時間 * MetaEntityService * JSONをPackするように * :v: --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* flash/update で部分的に変更できるようにする (#13396)FineArchs2024-02-221-6/+6
| | | | | | | | | | | | | | | | | | | * make flash/update params optional * Update autogen files pnpm run build-misskey-js-with-types * Update update.ts * Update CHANGELOG.md * hasOwnProperty -> hasOwn Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* refactor: Refactor NoteReadService.read (#13429)tamaina2024-02-222-33/+32
| | | | | | | | | | | * refactor: Refactor NoteReadService.read * clean up * Update packages/backend/src/core/NoteReadService.ts --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2024-02-223-6/+14
|\
| * fix: 禁止キーワードを含むノートがDelayed ↵anatawa122024-02-223-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Queueに追加されて再処理される問題 (#13428) * refactor: use IdentifiableError instead of NoteCreateService.ContainsProhibitedWordsError * fix: notes with prohibited words are reprocessed with delay * docs(changelog): 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題 * lint: fix lint errors * fix: rethrowするべきなのにrethrowし忘れていたのを修正
* | enhance: ↵syuilo2024-02-226-4/+38
|/ | | | サーバーごとにモデレーションノートを残せるように
* fix: Bump sharp to 0.33.2 (#13391)tamaina2024-02-211-4/+5
|
* refactor(backend): `ReactionService.prototype.convertLegacyReactions` (#13375)okayurisotto2024-02-211-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | * add unit tests * cleanup unnecessary type assertions * `convertedReaction`変数の定義と変換表に対する存在確認処理の整理 * `count`変数の定義とループ処理での`Object.entries()`の活用 * 条件式の整理 * `Array.prototype.reduce`を使うように * `Array.prototype.reduce`を使うように * 配列操作を1つのメソッドチェーンに整理 これまでの実装では、`decodeReaction`の返り値が同一になる異なる入力値が同時に複数個存在した場合、後ろのもので上書きされてしまっていたはず。 これからの実装では、後ろのものは前のものに加算される。 (実際にこの挙動の変更が問題になるシチュエーションはまずないはず。) * add unit test * ドキュメントコメントの追加と型定義の調整
* fix: nodeinfoにenableMcaptchaとenableTurnstileが無い (#13387)anatawa122024-02-192-0/+4
|
* fix: allow moderators see role assigned users; fix #13301 (#13315)Cocoa Hoto2024-02-171-1/+1
|
* fix of 9a70ce8f5ea9df00001894809f5ce7bc69b14c8asyuilo2024-02-171-1/+1
| | | | Co-Authored-By: RyotaK <49341894+Ry0taK@users.noreply.github.com>
* feat: license violation protection (#13285)Acid Chicken (硫酸鶏)2024-02-175-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spec(frontend): aboutページにリポジトリ・フィードバックのURLを表示させる Cherry-picked from MisskeyIO#441 Cherry-picked from MisskeyIO#438 * feat: license violation protection * build: fix typo * build: fix typo * fix: farewell to the static type land * fix: key typo * fix: import typo * fix: properly interpret `prominently` * docs: add disclaimer * docs: update CHANGELOG * chore: add gap --------- Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Merge pull request from GHSA-qqrm-9grj-6v32tamaina2024-02-175-14/+94
| | | | | | | | | | | | | | | | | | | | | | | | | * maybe ok * fix * test wip * :v: * fix * if (res.ok) * validateContentTypeSetAsJsonLD * 条件を考慮し直す * その他の+json接尾辞が付いているメディアタイプも受け容れる * https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009 * add `; profile="https://www.w3.org/ns/activitystreams"` * application/ld+json;
* refactor(backend): remove/replace deprecated type deps (#13252)zyoshoka2024-02-162-2/+2
|
* fix typesyuilo2024-02-161-1/+1
|
* fixsyuilo2024-02-161-2/+2
|
* refactor(backend): misc/cacheをシンプルな実装に戻したsyuilo2024-02-162-65/+17
|
* リモートユーザーが復活してもキャッシュにより該当ユ ↵MeiMei2024-02-163-12/+33
| | | | | | | | | | | | | ザーのActivityが受け入れられないのを修正 Fix #13273 (#13275) * リモートユーザーが復活してもキャッシュにより該当ユーザーのActivityが受け入れられないのを修正 Fix #13273 * CHAGELOG * Use Redis event --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix(backend): add missing schemas and fix incorrect schemas (#13295)zyoshoka2024-02-1626-64/+497
| | | | | | | | | | | | | | | * fix(backend): add missing schemas and fix incorrect schemas * fix: ci * fix: ci (本命) * fix: run `pnpm build-misskey-js-with-types` * fix: typos * fix: role-condition-formula-value contains `id` * fix: incorrect schema
* feat(backend): ↵Kisaragi2024-02-161-3/+3
| | | | | | | | | | | likeOnlyなどでハートにフォールバックする際異体字セレクタがない方に揃える (#13299) * feat(backend): likeOnlyなどでハートにフォールバックする際異体字セレクタがない方に揃える close #13298 * Update ReactionService.ts * chore(backend): prefer single quote for string literal
* (re) update SPDX-FileCopyrightTexttamaina2024-02-13796-798/+798
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-13796-835/+835
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* perf: omit search for immutable static requests (#13265)Acid Chicken (硫酸鶏)2024-02-133-23/+47
| | | | | | | | | | | | | * perf: omit search for immutable static requests * perf: also applies to /files * fix: exclude /proxy * /files/:key/*を301 redirectに --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* enhance: 禁止ワードはリモートノートも対象に (#13280)tamaina2024-02-131-4/+2
| | | Resolve #13279
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2024-02-121-0/+8
|\
| * feat: provide tarball (#13260)Acid Chicken (硫酸鶏)2024-02-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | * feat: provide tarball * build: pack on build-assets * chore: use ignore-walk * chore: debug * build: dependencies
* | update SPDX-FileCopyrightTextsyuilo2024-02-12796-835/+835
|/
* fix: ↵おさむのひと2024-02-097-29/+75
| | | | | | | 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 (#13210) * fix: 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 * Serviceでチェックするように変更
* refactor(backend): exist -> exists (#13203)かっこかり2024-02-0840-64/+64
| | | | | * refactor(backend): exist -> exists * fix
* Enhance: 連合向けのノート配信を軽量化 (#13192)MeiMei2024-02-073-16/+30
| | | | | | | | | * AP HTML表現をシンプルに * a * CHANGELOG * リンク
* AP Key の JSON-LD 表現を修正 (#13170)MeiMei2024-02-061-0/+1
|