From 06f8dd39cad3b901cac08530b7352d69d22a1929 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:50:10 +0900 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E8=87=AA=E5=88=86=E3=81=AE?= =?UTF-8?q?=E8=A1=8C=E3=81=A3=E3=81=9F=E3=83=95=E3=82=A9=E3=83=AD=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E9=99=90=E5=AE=9A=E6=8A=95=E7=A8=BF=E3=81=BE=E3=81=9F?= =?UTF-8?q?=E3=81=AF=E6=8C=87=E5=90=8D=E6=8A=95=E7=A8=BF=E3=81=AB=E8=87=AA?= =?UTF-8?q?=E5=88=86=E8=87=AA=E8=BA=AB=E3=81=A7=E3=83=AA=E3=82=A2=E3=82=AF?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AA=E3=81=A9=E8=A1=8C=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AE=E3=82=A4=E3=83=99=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=8C=E6=B5=81=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- .../backend/src/server/api/stream/Connection.ts | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) 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', {