From 02a382aa8fc7123e47a58b9a2799361016d235d8 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Sat, 10 Jun 2023 02:56:56 +0900 Subject: [PATCH] fix: use reply as root if root is undefined --- src/components/NotePostForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NotePostForm.tsx b/src/components/NotePostForm.tsx index 78430c4..7ea8e1c 100644 --- a/src/components/NotePostForm.tsx +++ b/src/components/NotePostForm.tsx @@ -225,7 +225,7 @@ const NotePostForm: Component = (props) => { ...notifyPubkeys(), ...pubkeyReferences, // 本文中の公開鍵(npub) ]), - rootEventId: replyTo()?.rootEvent()?.id, + rootEventId: replyTo()?.rootEvent()?.id ?? replyTo()?.replyingToEvent()?.id, replyEventId: replyTo()?.id, }; }