fix rbt bug?

This commit is contained in:
syuilo 2024-09-22 18:40:05 +09:00
parent 6ba97a7763
commit bd5f25c678
2 changed files with 2 additions and 1 deletions

View file

@ -337,6 +337,7 @@ export class ReactionService {
//#endregion
}
// TODO: 廃止
/**
*
* 0

View file

@ -329,7 +329,7 @@ export class NoteEntityService implements OnModuleInit {
: this.meta.enableReactionsBuffering
? await this.reactionsBufferingService.get(note.id)
: { deltas: {}, pairs: [] };
const reactions = mergeReactions(note.reactions, bufferdReactions.deltas ?? {});
const reactions = mergeReactions(this.reactionService.convertLegacyReactions(note.reactions), bufferdReactions.deltas ?? {});
for (const [name, count] of Object.entries(reactions)) {
if (count <= 0) {
delete reactions[name];