Skip to content
Snippets Groups Projects
Unverified Commit a7f46414 authored by kabo2468's avatar kabo2468 Committed by GitHub
Browse files

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

parent 8eb87c8e
No related branches found
No related tags found
No related merge requests found
...@@ -195,6 +195,8 @@ const isMyRenote = $i && ($i.id === note.userId); ...@@ -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) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment