From 3b8997d153cd1bf116c078a981174257d223e51a Mon Sep 17 00:00:00 2001 From: Natty Date: Tue, 7 Nov 2023 16:28:48 +0100 Subject: [PATCH] Frontend: Fixed isRenote --- fe_calckey/frontend/client/src/scripts-mag/mag-util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe_calckey/frontend/client/src/scripts-mag/mag-util.ts b/fe_calckey/frontend/client/src/scripts-mag/mag-util.ts index 7399c09..e46134a 100644 --- a/fe_calckey/frontend/client/src/scripts-mag/mag-util.ts +++ b/fe_calckey/frontend/client/src/scripts-mag/mag-util.ts @@ -128,9 +128,9 @@ export function magIsRenote( ): boolean { return ( magTransProperty(note, "renoted_note", "renote") != null && - note.text == null && + (note.text || null) === null && magTransProperty(note, "file_ids", "fileIds").length === 0 && - note.poll == null + (note.poll || null) === null ); }