diff options
| author | kabo2468 <28654659+kabo2468@users.noreply.github.com> | 2023-05-31 12:57:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-31 12:57:40 +0900 |
| commit | aba0755880d6797f49d34c8b7fe2c602d153e367 (patch) | |
| tree | 8acac1fc59787541e0d0245fa1edfd9b5a688e06 /packages/frontend/src/components/MkNote.vue | |
| parent | perf(frontend): サーバーにカスタム絵文字の種類が多い場合... (diff) | |
| download | sharkey-aba0755880d6797f49d34c8b7fe2c602d153e367.tar.gz sharkey-aba0755880d6797f49d34c8b7fe2c602d153e367.tar.bz2 sharkey-aba0755880d6797f49d34c8b7fe2c602d153e367.zip | |
enhance(client): MFMのx2, scale, positionが含まれていたらノートをたたむようにした (#10165)
* enhance(client): MFMのx2, scale, positionが含まれていたらノートをたたむようにした
* Update CHANGELOG.md
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index e0f2ab61c5..30ec9123bb 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -205,8 +205,11 @@ const isMyRenote = $i && ($i.id === note.userId); const showContent = ref(false); const urls = appearNote.text ? extractUrlFromMfm(mfm.parse(appearNote.text)) : null; const isLong = (appearNote.cw == null && appearNote.text != null && ( + (appearNote.text.includes('$[x2')) || (appearNote.text.includes('$[x3')) || (appearNote.text.includes('$[x4')) || + (appearNote.text.includes('$[scale')) || + (appearNote.text.includes('$[position')) || (appearNote.text.split('\n').length > 9) || (appearNote.text.length > 500) || (appearNote.files.length >= 5) || @@ -274,7 +277,7 @@ function renote(viaKeyboard = false) { const y = rect.top + (el.offsetHeight / 2); os.popup(MkRippleEffect, { x, y }, {}, 'end'); } - + os.api('notes/create', { renoteId: appearNote.id, channelId: appearNote.channelId, @@ -305,7 +308,7 @@ function renote(viaKeyboard = false) { const y = rect.top + (el.offsetHeight / 2); os.popup(MkRippleEffect, { x, y }, {}, 'end'); } - + os.api('notes/create', { renoteId: appearNote.id, }).then(() => { |