mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
fix(backend): 自分の行ったフォロワー限定投稿または指名投稿に自分自身でリアクションなど行った場合のイベントが流れない問題を修正
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
-
|
||||
|
||||
### Server
|
||||
-
|
||||
- Fix: 自分の行ったフォロワー限定投稿または指名投稿に自分自身でリアクションなど行った場合のイベントが流れない問題を修正
|
||||
|
||||
|
||||
## 2026.3.1
|
||||
|
||||
@@ -206,13 +206,18 @@ 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 === 'followers' && !Object.hasOwn(this.following, data.body.userId)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
this.sendMessageToWs('noteUpdated', {
|
||||
id: data.body.id,
|
||||
|
||||
Reference in New Issue
Block a user