enhance(client): MFMのx3, x4が含まれていたらノートをたたむようにした (#10012)

This commit is contained in:
kabo2468 2023-02-21 10:45:53 +09:00 committed by GitHub
parent 8eb87c8e4d
commit a7f464147d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,8 @@ const isMyRenote = $i && ($i.id === note.userId);
const showContent = ref(false); const showContent = ref(false);
const urls = appearNote.text ? extractUrlFromMfm(mfm.parse(appearNote.text)) : null; const urls = appearNote.text ? extractUrlFromMfm(mfm.parse(appearNote.text)) : null;
const isLong = (appearNote.cw == null && appearNote.text != null && ( const isLong = (appearNote.cw == null && appearNote.text != null && (
(appearNote.text.includes('$[x3')) ||
(appearNote.text.includes('$[x4')) ||
(appearNote.text.split('\n').length > 9) || (appearNote.text.split('\n').length > 9) ||
(appearNote.text.length > 500) || (appearNote.text.length > 500) ||
(appearNote.files.length >= 5) || (appearNote.files.length >= 5) ||