mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-08 14:46:57 +00:00
small refactor
This commit is contained in:
parent
5fc9c1c8cd
commit
e76e6cd08f
1 changed files with 8 additions and 8 deletions
|
@ -115,14 +115,14 @@ export default abstract class Channel {
|
||||||
clonedNote.renote.myReaction = myReaction;
|
clonedNote.renote.myReaction = myReaction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (note.renote?.reply && Object.keys(note.renote.reply.reactions).length > 0) {
|
||||||
if (this.user && note.renote?.reply && Object.keys(note.renote.reply.reactions).length > 0) {
|
const myReaction = await noteEntityService.populateMyReaction(note.renote.reply, this.user.id);
|
||||||
const myReaction = await noteEntityService.populateMyReaction(note.renote.reply, this.user.id);
|
if (myReaction) {
|
||||||
if (myReaction) {
|
changed = true;
|
||||||
changed = true;
|
clonedNote.renote = { ...note.renote };
|
||||||
clonedNote.renote = { ...note.renote };
|
clonedNote.renote.reply = { ...note.renote.reply };
|
||||||
clonedNote.renote.reply = { ...note.renote.reply };
|
clonedNote.renote.reply.myReaction = myReaction;
|
||||||
clonedNote.renote.reply.myReaction = myReaction;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.user && note.reply && Object.keys(note.reply.reactions).length > 0) {
|
if (this.user && note.reply && Object.keys(note.reply.reactions).length > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue