From 46d0679845a21938517166b9c8cd77dab0bf6550 Mon Sep 17 00:00:00 2001 From: Lhcfl <Lhcfl@outlook.com> Date: Fri, 3 May 2024 00:56:10 +0800 Subject: [PATCH] little patch --- packages/client/src/scripts/fold.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/scripts/fold.ts b/packages/client/src/scripts/fold.ts index 1fa93b64b4..ac17c439ea 100644 --- a/packages/client/src/scripts/fold.ts +++ b/packages/client/src/scripts/fold.ts @@ -112,6 +112,11 @@ export function foldNotes(ns: NoteType[], foldReply = true, foldRenote = true) { threads.delete(n.replyId); th.push(n); threads.set(n.id, th); + } else if (n.reply?.replyId && threads.has(n.reply.replyId)) { + const th = threads.get(n.reply.replyId)!; + threads.delete(n.reply.replyId); + th.push(n.reply, n); + threads.set(n.id, th); } else { threads.set(n.id, [n]); }