Frontend: Fixed reactions overriding the self reaction flag
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
79660fb816
commit
e2cab2aa9b
|
@ -39,10 +39,13 @@ export function useNoteCapture(props: {
|
|||
|
||||
const selfReact = ($i && body.userId === $i.id) || false;
|
||||
if (foundReaction >= 0) {
|
||||
const [reaction, cnt, selfReactPrev] = toRaw(
|
||||
note.value.reactions[foundReaction]
|
||||
);
|
||||
note.value.reactions[foundReaction] = [
|
||||
toRaw(note.value.reactions[foundReaction][0]),
|
||||
note.value.reactions[foundReaction][1] + 1,
|
||||
selfReact,
|
||||
reaction,
|
||||
cnt + 1,
|
||||
selfReactPrev || selfReact,
|
||||
];
|
||||
} else {
|
||||
note.value.reactions.push([reactionType, 1, selfReact]);
|
||||
|
|
Loading…
Reference in New Issue