diff --git a/CHANGELOG.md b/CHANGELOG.md index 45687b5738..394f46fb4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - ### Server -- +- Fix: 自分の行ったフォロワー限定投稿または指名投稿に自分自身でリアクションなど行った場合のイベントが流れない問題を修正 ## 2026.3.1 diff --git a/packages/backend/src/server/api/stream/Connection.ts b/packages/backend/src/server/api/stream/Connection.ts index e813531728..e6cd184e97 100644 --- a/packages/backend/src/server/api/stream/Connection.ts +++ b/packages/backend/src/server/api/stream/Connection.ts @@ -206,12 +206,17 @@ export default class Connection { @bindThis private async onNoteStreamMessage(data: GlobalEvents['note']['payload']) { - if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user!.id)) { - return; - } + // 自分自身ではないかつ + if (data.body.userId === this.user!.id) { + // 公開範囲が指名で自分が含まれてない + if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user!.id)) { + return; + } - if (data.body.visibility === 'followers' && !Object.hasOwn(this.following, data.body.userId)) { - return; + // 公開範囲がフォロワーで自分がフォロワーでない + if (data.body.visibility === 'followers' && !Object.hasOwn(this.following, data.body.userId)) { + return; + } } this.sendMessageToWs('noteUpdated', {