From 9782370e861d0e6e05478854d59987d5d2073aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 9 Nov 2024 03:48:51 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E5=BC=95=E7=94=A8RN=E3=81=AE?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E3=81=AE=E6=9D=A1=E4=BB=B6=E3=81=8C=E4=B8=8D?= =?UTF-8?q?=E5=AE=8C=E5=85=A8=E3=81=A0=E3=81=A3=E3=81=9F=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20(MisskeyIO#806)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/get-note-menu.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index e7c9a848e..92e421cda 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -36,8 +36,10 @@ export async function getNoteClipMenu(props: { const isRenote = ( props.note.renote != null && + props.note.reply == null && props.note.text == null && - props.note.fileIds.length === 0 && + props.note.cw == null && + props.note.fileIds && props.note.fileIds.length === 0 && props.note.poll == null ); @@ -164,8 +166,10 @@ export function getNoteMenu(props: { }) { const isRenote = ( props.note.renote != null && + props.note.reply == null && props.note.text == null && - props.note.fileIds.length === 0 && + props.note.cw == null && + props.note.fileIds && props.note.fileIds.length === 0 && props.note.poll == null ); @@ -509,8 +513,10 @@ export function getRenoteMenu(props: { }) { const isRenote = ( props.note.renote != null && + props.note.reply == null && props.note.text == null && - props.note.fileIds.length === 0 && + props.note.cw == null && + props.note.fileIds && props.note.fileIds.length === 0 && props.note.poll == null );