Revert "fix(backend): 自分の行ったフォロワー限定投稿または指名投稿に自分自身でリアクションなど行った場合のイベントが流れない問題を修正"

This reverts commit 06f8dd39ca.
This commit is contained in:
syuilo
2026-03-09 13:51:18 +09:00
parent 06f8dd39ca
commit db5cc6c058
2 changed files with 6 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
- -
### Server ### Server
- Fix: 自分の行ったフォロワー限定投稿または指名投稿に自分自身でリアクションなど行った場合のイベントが流れない問題を修正 -
## 2026.3.1 ## 2026.3.1

View File

@@ -206,17 +206,12 @@ export default class Connection {
@bindThis @bindThis
private async onNoteStreamMessage(data: GlobalEvents['note']['payload']) { private async onNoteStreamMessage(data: GlobalEvents['note']['payload']) {
// 自分自身ではないかつ if (data.body.visibility === 'specified' && !data.body.visibleUserIds.includes(this.user!.id)) {
if (data.body.userId === 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)) {
if (data.body.visibility === 'followers' && !Object.hasOwn(this.following, data.body.userId)) { return;
return;
}
} }
this.sendMessageToWs('noteUpdated', { this.sendMessageToWs('noteUpdated', {