mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:33:08 +02:00
enhance(client): MFMのx3, x4が含まれていたらノートをたたむようにした (#10012)
This commit is contained in:
parent
8eb87c8e4d
commit
a7f464147d
1 changed files with 2 additions and 0 deletions
|
@ -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) ||
|
||||||
|
|
Loading…
Reference in a new issue