From 25b98d477ff1688ea07cb48366ade363a61bcdd5 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 25 Oct 2024 23:04:18 +0800 Subject: [PATCH] Fix nested threads bug --- src/pages/status.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/status.jsx b/src/pages/status.jsx index ec32646b..0989122e 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -360,7 +360,11 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { nestedDescendants.push(status); } else if ( !status.inReplyToAccountId && - nestedDescendants.find((s) => s.id === status.inReplyToId) && + nestedDescendants.find( + (s) => + s.id === status.inReplyToId && + s.account.id === heroStatus.account.id, + ) && status.account.id === heroStatus.account.id ) { // If replying to hero's own statuses, it's part of the thread, level 1