From 67450815cd8d8ef0a4f6eb93d23e5a666230126b Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 13 Jul 2022 19:06:27 +0200 Subject: [PATCH] fix(client): wrongly collapsed posts --- packages/client/src/components/note.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index 5b8b45f32..85e3ee15f 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -169,11 +169,11 @@ const reactButton = ref(); let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note); const isMyRenote = $i && ($i.id === note.userId); const showContent = ref(false); -const collapsed = ref(appearNote.cw == null); const isLong = ref(appearNote.cw == null && appearNote.text != null && ( (appearNote.text.split('\n').length > 9) || (appearNote.text.length > 500) )); +const collapsed = ref(appearNote.cw == null && isLong); const isDeleted = ref(false); const muted = ref(checkWordMute(appearNote, $i, defaultStore.state.mutedWords)); const translation = ref(null);