This commit is contained in:
kakkokari-gtyih 2024-12-28 17:53:28 +09:00
parent 3c5089e4fb
commit e99ae2a9f3
1 changed files with 15 additions and 7 deletions

View File

@ -120,13 +120,21 @@ class UserListChannel extends Channel {
} }
} }
if (this.minimize && ['public', 'home'].includes(note.visibility)) { if (this.minimize) {
this.send('note', { if (this.noteEntityService.canCache(note)) {
id: note.id, myReaction: note.myReaction, this.send('note', {
poll: note.poll?.choices ? { choices: note.poll.choices } : undefined, id: note.id, myReaction: note.myReaction,
reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined, poll: note.poll?.choices ? { choices: note.poll.choices } : undefined,
renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined, reply: note.reply?.myReaction ? { myReaction: note.reply.myReaction } : undefined,
}); renote: note.renote?.myReaction ? { myReaction: note.renote.myReaction } : undefined,
_allowCached_: true,
});
} else {
this.send('note', {
id: note.id,
_allowCached_: false,
});
}
} else { } else {
this.connection.cacheNote(note); this.connection.cacheNote(note);
this.send('note', note); this.send('note', note);