fix
This commit is contained in:
parent
73d31ec332
commit
9b0b8a4180
|
@ -424,12 +424,12 @@ function onContextmenu(ev: MouseEvent): void {
|
||||||
copyToClipboard(`${url}${notePage(appearNote)}`);
|
copyToClipboard(`${url}${notePage(appearNote)}`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
note.user.host != null
|
appearNote.user.host != null
|
||||||
? {
|
? {
|
||||||
type: "a",
|
type: "a",
|
||||||
icon: "ph-arrow-square-up-right ph-bold ph-lg",
|
icon: "ph-arrow-square-up-right ph-bold ph-lg",
|
||||||
text: i18n.ts.showOnRemote,
|
text: i18n.ts.showOnRemote,
|
||||||
href: note.url ?? note.uri ?? "",
|
href: appearNote.url ?? appearNote.uri ?? "",
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
@ -521,28 +521,28 @@ function setPostExpanded(val: boolean) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const accessibleLabel = computed(() => {
|
const accessibleLabel = computed(() => {
|
||||||
let label = `${props.note.user.username}; `;
|
let label = `${appearNote.user.username}; `;
|
||||||
if (props.note.renote) {
|
if (appearNote.renote) {
|
||||||
label += `${i18n.t("renoted")} ${props.note.renote.user.username}; `;
|
label += `${i18n.t("renoted")} ${appearNote.renote.user.username}; `;
|
||||||
if (props.note.renote.cw) {
|
if (appearNote.renote.cw) {
|
||||||
label += `${i18n.t("cw")}: ${props.note.renote.cw}; `;
|
label += `${i18n.t("cw")}: ${appearNote.renote.cw}; `;
|
||||||
if (postIsExpanded.value) {
|
if (postIsExpanded.value) {
|
||||||
label += `${props.note.renote.text}; `;
|
label += `${appearNote.renote.text}; `;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
label += `${props.note.renote.text}; `;
|
label += `${appearNote.renote.text}; `;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (props.note.cw) {
|
if (appearNote.cw) {
|
||||||
label += `${i18n.t("cw")}: ${props.note.cw}; `;
|
label += `${i18n.t("cw")}: ${appearNote.cw}; `;
|
||||||
if (postIsExpanded.value) {
|
if (postIsExpanded.value) {
|
||||||
label += `${props.note.text}; `;
|
label += `${appearNote.text}; `;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
label += `${props.note.text}; `;
|
label += `${appearNote.text}; `;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const date = new Date(props.note.createdAt);
|
const date = new Date(appearNote.createdAt);
|
||||||
label += `${date.toLocaleTimeString()}`;
|
label += `${date.toLocaleTimeString()}`;
|
||||||
return label;
|
return label;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue