From 465a710b4b8bd9a402c00adb18e395123f80c6a1 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Sun, 10 Nov 2024 11:41:15 +0800 Subject: [PATCH] use note capture --- packages/frontend/src/scripts/use-note-capture.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/use-note-capture.ts b/packages/frontend/src/scripts/use-note-capture.ts index b5a304355..4dd34f178 100644 --- a/packages/frontend/src/scripts/use-note-capture.ts +++ b/packages/frontend/src/scripts/use-note-capture.ts @@ -19,7 +19,7 @@ export function useNoteCapture(props: { onDeleteCallback?: (id: Misskey.entities.Note['id']) => void | Promise; }) { const note = props.note; - const pureNote = props.pureNote; + const pureNote = props.pureNote !== undefined ? props.pureNote : props.note; const connection = $i ? useStream() : null; async function onStreamNoteUpdated(noteData): Promise {