populate myreaction on replies for streams.

This commit is contained in:
piuvas 2024-12-23 10:50:31 -03:00
parent 5eca807e19
commit 83460279c0
No known key found for this signature in database
GPG key ID: 82743F52454C621D
5 changed files with 35 additions and 0 deletions

View file

@ -72,6 +72,13 @@ class BubbleTimelineChannel extends Channel {
}
}
if (this.user && note.reply) {
if (Object.keys(note.reply.reactions).length > 0) {
const myRenoteReaction = await this.noteEntityService.populateMyReaction(note.reply, this.user.id);
note.reply.myReaction = myRenoteReaction;
}
}
this.connection.cacheNote(note);
this.send('note', note);