mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
fix rbt bug?
This commit is contained in:
parent
6ba97a7763
commit
bd5f25c678
2 changed files with 2 additions and 1 deletions
|
@ -337,6 +337,7 @@ export class ReactionService {
|
|||
//#endregion
|
||||
}
|
||||
|
||||
// TODO: 廃止
|
||||
/**
|
||||
* 文字列タイプのレガシーな形式のリアクションを現在の形式に変換しつつ、
|
||||
* データベース上には存在する「0個のリアクションがついている」という情報を削除する。
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue