1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 00:15:24 +02:00

Merge commit from fork

Co-authored-by: Julia Johannesen <197614925+juliajohannesen@users.noreply.github.com>
This commit is contained in:
syuilo
2026-03-09 08:14:12 +09:00
committed by GitHub
parent b5d399674a
commit a07dc589e7
6 changed files with 22 additions and 8 deletions

View File

@@ -206,6 +206,14 @@ 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.visibility === 'followers' && !Object.hasOwn(this.following, data.body.userId)) {
return;
}
this.sendMessageToWs('noteUpdated', {
id: data.body.id,
type: data.type,