From a03702d2bd095342a2995259cc23fa4721e14f1c Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Thu, 31 Dec 2020 11:45:58 +0900
Subject: Better note auto collapse algorithm

---
 src/client/components/note.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/components/note.vue')

diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 556fca1a1a..0724404f6f 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -277,7 +277,7 @@ export default defineComponent({
 			this.connection = os.stream;
 		}
 
-		this.collapsed = this.appearNote.text && (
+		this.collapsed = this.appearNote.cw == null && this.appearNote.text && (
 			(this.appearNote.text.split('\n').length > 9) ||
 			(this.appearNote.text.length > 500)
 		);
-- 
cgit v1.2.3-freya

