summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NotificationService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* re-type userFollowingsCache to match the othersHazelnoot2025-06-091-6/+6
|
* fix type error in NotificationService.tsHazelnoot2025-04-021-1/+1
|
* merge from misskey-developHazelnoot2025-04-021-16/+105
|\
| * Fix: ↵anatawa122025-04-021-16/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 通知のページネーションで2つ以上読み込めなくなることがある問題 (#15277) * fix: notifications-groupedのinclude/exclude typesに:groupedを指定できてしまう問題 * refactor: 通知の取得処理を Notification Service に移動 * feat: add function to parse additional part of id * fix: 通知のページネーションが正しく動かない問題 Redisにのページネーションで使用する時間及びidとRedis上のものが混同されていたので、Misskeyが生成するものに寄せました。 * pnpm run build-misskey-js-with-types * chore: XADDをretryするように * fix: notifications-groupedでxrevrangeしているのを消し忘れていた
| * enhance: 通知の履歴をリセットできるように (#13335)かっこかり2024-02-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * enhance: 通知の履歴をリセットできるように * Update Changelog * 通知欄も連動して更新するように * revert some changes * Update CHANGELOG.md * Remove unused part * fix
| * enhance(backend): ↵taichan2024-02-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 通知がミュート・凍結を考慮するようにする (#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>
| * enhance(backend): ↵zyoshoka2024-02-281-0/+8
| | | | | | | | | | | | | | | | | | フォロー・フォロワー関連の通知の受信設定の強化 (#13468) * enhance(backend): 通知の受信設定に「フォロー中またはフォロワー」を追加 * fix(backend): 通知の受信設定で「相互フォロー」が正しく動作しない問題を修正 * Update CHANGELOG.md
* | merge upstream for 2024.2.1dakkar2024-03-021-0/+19
|/
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* refactor: make sure promises are settled before app shutdown (#12942)Kagami Sascha Rosylight2024-01-081-1/+13
| | | 👍
* feat: notification groupingsyuilo2023-11-021-5/+8
| | | | Resolve #12211
* Feat: 未読通知数を表示できるように (#11982)かっこかり2023-11-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 未読通知数を表示できるように * Update Changelog * オプトインにする * Fix lint * (add) テスト通知のプッシュ通知を追加 * add test * フロントエンドの表示上限を99に変更 * Make it default on * 共通スタイルをくくりだす * Update Changelog * tweak * Update UserEntityService.ts * rename * Update navbar-for-mobile.vue --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): createdAtをidから取得するように & ↵syuilo2023-10-161-1/+1
| | | | 無駄なDateインスタンスの生成を避けるように
* feat: improve tl performance (#11946)syuilo2023-10-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * Update NoteCreateService.ts * wip * wip * wip * wip * Update NoteCreateService.ts * wip * Update NoteCreateService.ts * wip * Update user-notes.ts * wip * wip * wip * Update NoteCreateService.ts * wip * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * wip * Update timelines.ts * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * Update misskey-js.api.md * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * wip * Update timelines.ts * wip * test * Update activitypub.ts * refactor: UserListJoining -> UserListMembership * Update NoteCreateService.ts * wip
* fix(backend): ↵syuilo2023-09-301-1/+4
| | | | Redisに古いMisskeyバージョンのキャッシュが残っている場合の問題を修正
* feat: 通知の受信設定を強化syuilo2023-09-291-8/+39
|
* refactor(backend): update directory structure for modelssyuilo2023-09-201-2/+2
|
* update deps (#11820)syuilo2023-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* fixessyuilo2023-09-051-1/+1
|
* enhance(backend): タイムライン等の有効期限を設定可能にsyuilo2023-09-051-1/+5
| | | | Resolve #11773
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-11/+11
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* refactor(backend): Remove unused injections (#11462)woxtu2023-08-051-9/+1
| | | | | * Remove unused injections * Remove unused imports
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* cleanup: trim trailing whitespace (#11136)okayurisotto2023-07-081-1/+1
| | | | | | | | | * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactorsyuilo2023-05-291-1/+7
|
* fix typessyuilo2023-04-141-2/+2
|
* sw: なんかもうめっちゃ変えた (#10570)tamaina2023-04-111-0/+1
| | | | | | | | | * sw: なんかいろいろ * remove debug code * never renotify * update changelog.md
* fix(backend): ↵syuilo2023-04-101-1/+1
| | | | | | アンテナのノート、チャンネルのノート、通知が正常に作成できないことがある問題を修正 Fix #10482
* fix: 通知インジケータが光りっぱなしになる問題を修正 ↵tamaina2023-04-061-3/+4
| | | | | | | | | | | (#10483) * fix(misskey-js): ストリームがstringで送信される場合があるのを修正 * pnpm run api * force read notification * fix competition
* enhance(backend): improve cachesyuilo2023-04-051-3/+3
|
* enhance(backend): improve cachesyuilo2023-04-041-11/+7
|
* perf(backend): 通知をRedisに保存するようにsyuilo2023-04-041-66/+49
| | | | Resolve #10168
* add notessyuilo2023-04-031-0/+2
|
* Update NotificationService.tssyuilo2023-03-161-0/+1
|
* refactor(backend): integrate CreateNotificationService to NotificationServicesyuilo2023-03-161-5/+109
|
* refactor: fix typessyuilo2023-02-171-2/+1
|
* refactor: remove all unused imports (#9951)Kagami Sascha Rosylight2023-02-161-1/+0
| | | Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-0/+5
|
* refactorsyuilo2022-12-041-1/+1
|
* fix import typesyuilo2022-09-211-1/+1
|
* testsyuilo2022-09-191-4/+4
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+67