Frontend: Fixed more reaction bugs
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
cb645ef0f6
commit
e53e274d1d
|
@ -95,12 +95,10 @@
|
||||||
class="button"
|
class="button"
|
||||||
:note="appearNote"
|
:note="appearNote"
|
||||||
:count="
|
:count="
|
||||||
Number(
|
magTransProperty(
|
||||||
magTransProperty(
|
appearNote,
|
||||||
appearNote,
|
'renote_count',
|
||||||
'renote_count',
|
'renoteCount'
|
||||||
'renoteCount'
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -59,10 +59,8 @@ const hasRenotedBefore = ref<boolean>(
|
||||||
|
|
||||||
const canRenote = computed(
|
const canRenote = computed(
|
||||||
() =>
|
() =>
|
||||||
["public", "home"].includes(props.note.visibility) ||
|
["public", "home", "Public", "Home"].includes(props.note.visibility) ||
|
||||||
($i &&
|
($i && props.note.user.id === $i.id)
|
||||||
magTransMap(props.note, "user", "userId", (user) => user.id) ===
|
|
||||||
$i.id)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
useTooltip(buttonRef, async (showing) => {
|
useTooltip(buttonRef, async (showing) => {
|
||||||
|
|
|
@ -195,7 +195,7 @@ export function magReactionToLegacy(reaction: types.Reaction | string): string {
|
||||||
if (reaction.host) {
|
if (reaction.host) {
|
||||||
return `:${reaction.name}@${reaction.host}:`;
|
return `:${reaction.name}@${reaction.host}:`;
|
||||||
} else {
|
} else {
|
||||||
return `:${reaction.name}@.:`;
|
return `:${reaction.name}:`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,10 @@ export function useNoteCapture(props: {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const reactionType = magConvertReaction(reaction);
|
const reactionType = magConvertReaction(
|
||||||
|
reaction,
|
||||||
|
body?.emoji?.url
|
||||||
|
);
|
||||||
const foundReaction = magReactionIndex(
|
const foundReaction = magReactionIndex(
|
||||||
note.value.reactions,
|
note.value.reactions,
|
||||||
reactionType
|
reactionType
|
||||||
|
|
Loading…
Reference in New Issue