diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-05 20:00:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-05 20:00:37 +0900 |
| commit | aa01ba7cced45a6e25fdef560aa5e1542581d492 (patch) | |
| tree | 34e1dc6547286a405801a3c3224d090005b9a596 /packages/frontend/src/components/MkPostForm.vue | |
| parent | New Crowdin updates (#10214) (diff) | |
| download | misskey-aa01ba7cced45a6e25fdef560aa5e1542581d492.tar.gz misskey-aa01ba7cced45a6e25fdef560aa5e1542581d492.tar.bz2 misskey-aa01ba7cced45a6e25fdef560aa5e1542581d492.zip | |
enhance(client): tweak brain diver detection
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 2b3e2c8646..09f672be7b 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -658,7 +658,14 @@ async function post(ev?: MouseEvent) { if ((text.includes('love') || text.includes('❤')) && text.includes('misskey')) { claimAchievement('iLoveMisskey'); } - if (text.includes('Efrlqw8ytg4'.toLowerCase()) || text.includes('XVCwzwxdHuA'.toLowerCase())) { + if ( + text.includes('https://youtu.be/Efrlqw8ytg4'.toLowerCase()) || + text.includes('https://www.youtube.com/watch?v=Efrlqw8ytg4'.toLowerCase()) || + text.includes('https://m.youtube.com/watch?v=Efrlqw8ytg4'.toLowerCase()) || + text.includes('https://youtu.be/XVCwzwxdHuA'.toLowerCase()) || + text.includes('https://www.youtube.com/watch?v=XVCwzwxdHuA'.toLowerCase()) || + text.includes('https://m.youtube.com/watch?v=XVCwzwxdHuA'.toLowerCase()) + ) { claimAchievement('brainDiver'); } |