diff --git a/CHANGELOG.md b/CHANGELOG.md index 528d52cb20..4f53dcc4a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Server - Fix: ID生成アルゴリズムにULIDを使用している場合に通知が約10秒遅延する問題を修正 +- Fix: 公開範囲がフォロワーの投稿が通知されない問題を修正 ## 2026.5.0 diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index c364c029e8..a8f096471e 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -118,8 +118,8 @@ class NotificationManager { visibleUserIds = new Set(this.note.visibleUserIds); break; + case 'followers': { // TODO: フォロワー限定ノートにフォロワーではない人がメンションされた場合通知されるのが正しい挙動なのか確認(一部に挙動の不一致がありそう)。現状は通知されるためフィルタしない - // case 'followers': { // const targetUserIds = this.queue.map(x => x.target); // const followers = await this.followingsRepository.find({ // where: { @@ -130,8 +130,9 @@ class NotificationManager { // select: ['followerId'], // }); // visibleUserIds = new Set(followers.map(f => f.followerId)); - // break; - // } + visibleUserIds = null; + break; + } default: visibleUserIds = new Set();