fix
This commit is contained in:
parent
3c5089e4fb
commit
e99ae2a9f3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue