From 9b0b8a4180ab42cc125b78e7b34fa6499f804c3e Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sat, 27 May 2023 18:38:27 -0400 Subject: [PATCH] fix --- packages/client/src/components/MkNote.vue | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 021086ca98..8e3576dd50 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -424,12 +424,12 @@ function onContextmenu(ev: MouseEvent): void { copyToClipboard(`${url}${notePage(appearNote)}`); }, }, - note.user.host != null + appearNote.user.host != null ? { type: "a", icon: "ph-arrow-square-up-right ph-bold ph-lg", text: i18n.ts.showOnRemote, - href: note.url ?? note.uri ?? "", + href: appearNote.url ?? appearNote.uri ?? "", target: "_blank", } : undefined, @@ -521,28 +521,28 @@ function setPostExpanded(val: boolean) { } const accessibleLabel = computed(() => { - let label = `${props.note.user.username}; `; - if (props.note.renote) { - label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `; - if (props.note.renote.cw) { - label += `${i18n.t("cw")}: ${props.note.renote.cw}; `; + let label = `${appearNote.user.username}; `; + if (appearNote.renote) { + label += `${i18n.t("renoted")} ${appearNote.renote.user.username}; `; + if (appearNote.renote.cw) { + label += `${i18n.t("cw")}: ${appearNote.renote.cw}; `; if (postIsExpanded.value) { - label += `${props.note.renote.text}; `; + label += `${appearNote.renote.text}; `; } } else { - label += `${props.note.renote.text}; `; + label += `${appearNote.renote.text}; `; } } else { - if (props.note.cw) { - label += `${i18n.t("cw")}: ${props.note.cw}; `; + if (appearNote.cw) { + label += `${i18n.t("cw")}: ${appearNote.cw}; `; if (postIsExpanded.value) { - label += `${props.note.text}; `; + label += `${appearNote.text}; `; } } else { - label += `${props.note.text}; `; + label += `${appearNote.text}; `; } } - const date = new Date(props.note.createdAt); + const date = new Date(appearNote.createdAt); label += `${date.toLocaleTimeString()}`; return label; });