From f5a3d8996d2ea699d053993d1886399c4d9622dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 3 May 2026 15:43:39 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E5=85=AC=E9=96=8B=E7=AF=84?= =?UTF-8?q?=E5=9B=B2=E3=81=8C=E3=83=95=E3=82=A9=E3=83=AD=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E6=8A=95=E7=A8=BF=E3=81=8C=E9=80=9A=E7=9F=A5=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20(#17363)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(backend): 公開範囲がフォロワーの投稿が通知されない問題を修正 * Udpate Changelog --- CHANGELOG.md | 1 + packages/backend/src/core/NoteCreateService.ts | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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();