diff --git a/fe_calckey/frontend/client/src/pages/note.vue b/fe_calckey/frontend/client/src/pages/note.vue index 4d72281..51e7ecd 100644 --- a/fe_calckey/frontend/client/src/pages/note.vue +++ b/fe_calckey/frontend/client/src/pages/note.vue @@ -78,7 +78,7 @@ import * as os from "@/os"; import { definePageMetadata } from "@/scripts/page-metadata"; import { i18n } from "@/i18n"; import { endpoints, packed } from "magnetar-common"; -import { magTransUsername } from "@/scripts-mag/mag-util"; +import { magIsRenote, magTransUsername } from "@/scripts-mag/mag-util"; const props = defineProps<{ noteId: string; @@ -133,11 +133,7 @@ function fetchNote() { ) .then((res) => { note = res; - isRenote = - note.renoted_note_id != null && - note.text == null && - note.file_ids.length === 0 && - note.poll == null; + isRenote = magIsRenote(note); appearNote = isRenote ? (note.renoted_note as packed.PackNoteMaybeFull) : note;