enhance(frontend): リアクションの総数を表示するように (#13532)

* enhance(frontend): リアクションの総数を表示するように

* Update Changelog

* リアクション選択済の色をaccentに
This commit is contained in:
かっこかり 2024-03-06 21:08:42 +09:00 committed by GitHub
parent 62922352b3
commit 7ead98cbe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 79 additions and 29 deletions

View file

@ -333,6 +333,7 @@ export class NoteEntityService implements OnModuleInit {
visibleUserIds: note.visibility === 'specified' ? note.visibleUserIds : undefined,
renoteCount: note.renoteCount,
repliesCount: note.repliesCount,
reactionCount: Object.values(note.reactions).reduce((a, b) => a + b, 0),
reactions: this.reactionService.convertLegacyReactions(note.reactions),
reactionEmojis: this.customEmojiService.populateEmojis(reactionEmojiNames, host),
reactionAndUserPairCache: opts.withReactionAndUserPairCache ? note.reactionAndUserPairCache : undefined,