From db5cc6c058fbf9691dd5a9a83e486c0b966a97f1 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:51:18 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(backend):=20=E8=87=AA=E5=88=86?= =?UTF-8?q?=E3=81=AE=E8=A1=8C=E3=81=A3=E3=81=9F=E3=83=95=E3=82=A9=E3=83=AD?= =?UTF-8?q?=E3=83=AF=E3=83=BC=E9=99=90=E5=AE=9A=E6=8A=95=E7=A8=BF=E3=81=BE?= =?UTF-8?q?=E3=81=9F=E3=81=AF=E6=8C=87=E5=90=8D=E6=8A=95=E7=A8=BF=E3=81=AB?= =?UTF-8?q?=E8=87=AA=E5=88=86=E8=87=AA=E8=BA=AB=E3=81=A7=E3=83=AA=E3=82=A2?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AA=E3=81=A9=E8=A1=8C?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AE=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=8C=E6=B5=81=E3=82=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=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 This reverts commit 06f8dd39cad3b901cac08530b7352d69d22a1929. --- CHANGELOG.md | 2 +- .../backend/src/server/api/stream/Connection.ts | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 394f46fb4a..45687b5738 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 e6cd184e97..e813531728 100644 --- a/packages/backend/src/server/api/stream/Connection.ts +++ b/packages/backend/src/server/api/stream/Connection.ts @@ -206,17 +206,12 @@ export default class Connection { @bindThis private async onNoteStreamMessage(data: GlobalEvents['note']['payload']) { - // 自分自身ではないかつ - if (data.body.userId === this.user!.id) { - // 公開範囲が指名で自分が含まれてない - if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user!.id)) { - return; - } + 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', {