diff --git a/packages/client/src/components/sub-note-content.vue b/packages/client/src/components/sub-note-content.vue index 46abc9c54..46907a729 100644 --- a/packages/client/src/components/sub-note-content.vue +++ b/packages/client/src/components/sub-note-content.vue @@ -1,5 +1,5 @@ @@ -30,11 +33,14 @@ const props = defineProps<{ note: misskey.entities.Note; }>(); -const collapsed = $ref( + +const isLong = ( props.note.cw == null && props.note.text != null && ( (props.note.text.split('\n').length > 9) || (props.note.text.length > 500) - )); + ) +); +const collapsed = $ref(props.note.cw == null && isLong);