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,13 +95,11 @@
|
|||
class="button"
|
||||
:note="appearNote"
|
||||
:count="
|
||||
Number(
|
||||
magTransProperty(
|
||||
appearNote,
|
||||
'renote_count',
|
||||
'renoteCount'
|
||||
)
|
||||
)
|
||||
"
|
||||
/>
|
||||
<XStarButtonNoEmoji
|
||||
|
|
|
@ -59,10 +59,8 @@ const hasRenotedBefore = ref<boolean>(
|
|||
|
||||
const canRenote = computed(
|
||||
() =>
|
||||
["public", "home"].includes(props.note.visibility) ||
|
||||
($i &&
|
||||
magTransMap(props.note, "user", "userId", (user) => user.id) ===
|
||||
$i.id)
|
||||
["public", "home", "Public", "Home"].includes(props.note.visibility) ||
|
||||
($i && props.note.user.id === $i.id)
|
||||
);
|
||||
|
||||
useTooltip(buttonRef, async (showing) => {
|
||||
|
|
|
@ -195,7 +195,7 @@ export function magReactionToLegacy(reaction: types.Reaction | string): string {
|
|||
if (reaction.host) {
|
||||
return `:${reaction.name}@${reaction.host}:`;
|
||||
} 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(
|
||||
note.value.reactions,
|
||||
reactionType
|
||||
|
|
Loading…
Reference in New Issue