From 541d318fdcf8a203bfb31ffbff20744155151b78 Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Fri, 10 Feb 2023 17:35:38 +0800
Subject: [PATCH] One more logic for comment collapsing

---
 src/pages/status.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pages/status.jsx b/src/pages/status.jsx
index 0bc250e9..3a0cb699 100644
--- a/src/pages/status.jsx
+++ b/src/pages/status.jsx
@@ -796,7 +796,8 @@ function SubComments({ hasManyStatuses, replies, instance, hasParentThread }) {
     .filter((a, i, arr) => arr.findIndex((b) => b.id === a.id) === i)
     .slice(0, 3);
 
-  const open = !hasParentThread && (isBrief || !hasManyStatuses);
+  const open =
+    (!hasParentThread || replies.length === 1) && (isBrief || !hasManyStatuses);
 
   return (
     <details class="replies" open={open}>