diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-03-06 21:08:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 21:08:42 +0900 |
| commit | 7ead98cbe592e6911e4a54550cb7bb507e782d7c (patch) | |
| tree | 8a8c57c5dda5d6971da212a63e46954ef212a5b0 /packages/backend/src/core | |
| parent | Revert "perf: boot.jsの調整" (diff) | |
| download | misskey-7ead98cbe592e6911e4a54550cb7bb507e782d7c.tar.gz misskey-7ead98cbe592e6911e4a54550cb7bb507e782d7c.tar.bz2 misskey-7ead98cbe592e6911e4a54550cb7bb507e782d7c.zip | |
enhance(frontend): リアクションの総数を表示するように (#13532)
* enhance(frontend): リアクションの総数を表示するように
* Update Changelog
* リアクション選択済の色をaccentに
Diffstat (limited to 'packages/backend/src/core')
| -rw-r--r-- | packages/backend/src/core/entities/NoteEntityService.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 5b6affc6a5..22d01462e7 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -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, |