diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-03-07 16:09:36 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-03-07 16:09:36 +0000 |
| commit | dfff4d20731c9d356c28db6238a9e438618ff2e7 (patch) | |
| tree | 732119af4c809639356e71cd73f79eb41497d7dc /packages/frontend/src/scripts | |
| parent | merge: check prohibited words when creating notes (!461) (diff) | |
| parent | fix(frontend): 周年の実績が閏年を考慮するように (#13525) (diff) | |
| download | sharkey-dfff4d20731c9d356c28db6238a9e438618ff2e7.tar.gz sharkey-dfff4d20731c9d356c28db6238a9e438618ff2e7.tar.bz2 sharkey-dfff4d20731c9d356c28db6238a9e438618ff2e7.zip | |
Merge remote-tracking branch 'misskey/develop' into future
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/use-note-capture.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/use-note-capture.ts b/packages/frontend/src/scripts/use-note-capture.ts index 3baa45d50f..1b3626bff5 100644 --- a/packages/frontend/src/scripts/use-note-capture.ts +++ b/packages/frontend/src/scripts/use-note-capture.ts @@ -54,6 +54,7 @@ export function useNoteCapture(props: { const currentCount = (note.value.reactions || {})[reaction] || 0; note.value.reactions[reaction] = currentCount + 1; + note.value.reactionCount += 1; if ($i && (body.userId === $i.id)) { note.value.myReaction = reaction; @@ -68,6 +69,7 @@ export function useNoteCapture(props: { const currentCount = (note.value.reactions || {})[reaction] || 0; note.value.reactions[reaction] = Math.max(0, currentCount - 1); + note.value.reactionCount = Math.max(0, note.value.reactionCount - 1); if (note.value.reactions[reaction] === 0) delete note.value.reactions[reaction]; if ($i && (body.userId === $i.id)) { |