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;
|
const selfReact = ($i && body.userId === $i.id) || false;
|
||||||
if (foundReaction >= 0) {
|
if (foundReaction >= 0) {
|
||||||
|
const [reaction, cnt, selfReactPrev] = toRaw(
|
||||||
|
note.value.reactions[foundReaction]
|
||||||
|
);
|
||||||
note.value.reactions[foundReaction] = [
|
note.value.reactions[foundReaction] = [
|
||||||
toRaw(note.value.reactions[foundReaction][0]),
|
reaction,
|
||||||
note.value.reactions[foundReaction][1] + 1,
|
cnt + 1,
|
||||||
selfReact,
|
selfReactPrev || selfReact,
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
note.value.reactions.push([reactionType, 1, selfReact]);
|
note.value.reactions.push([reactionType, 1, selfReact]);
|
||||||
|
|
Loading…
Reference in New Issue