1
0
mirror of https://github.com/MisskeyIO/misskey synced 2025-01-18 07:43:44 +09:00

Better note auto collapse algorithm

This commit is contained in:
syuilo 2020-12-31 11:45:58 +09:00
parent 71d7de4989
commit a03702d2bd

View File

@ -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)
);