mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-28 09:36:56 +00:00
comment code
This commit is contained in:
parent
e76e6cd08f
commit
a3fc9a1085
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ export default abstract class Channel {
|
|||
|
||||
public async assignMyReaction(note: Packed<'Note'>, noteEntityService: NoteEntityService): Promise<Packed<'Note'>> {
|
||||
let changed = false;
|
||||
// cloning here seems like the best solution for a race condition
|
||||
// where multiple users shared the same myReaction. (Sharkey #877)
|
||||
const clonedNote = { ...note };
|
||||
if (this.user && isRenotePacked(note) && !isQuotePacked(note)) {
|
||||
if (note.renote && Object.keys(note.renote.reactions).length > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue