Merge pull request #42 from anatawa12/hotfix-collapse

fix: long not collapsed
This commit is contained in:
anatawa12 2023-08-07 13:16:23 +09:00 committed by GitHub
commit 0ec6347620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
### General
### Client
- 長いnoteがたたまれない問題を修正しました
### Server

View File

@ -13,7 +13,7 @@ export function shouldCollapsed(note: misskey.entities.Note, collapseSensitiveCh
(note.text.length > 500) ||
(note.files.length >= 5) ||
(!!urls && urls.length >= 4) ||
collapseSensitiveChannel ? note.channel?.isSensitive : false
(collapseSensitiveChannel ? note.channel?.isSensitive : false)
);
return collapsed;