Apply suggestions

This commit is contained in:
Marie 2024-12-09 05:58:25 +01:00
parent 1d0fd4c40b
commit 152cc07483
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555
3 changed files with 9 additions and 4 deletions

View file

@ -821,7 +821,7 @@ async function post(ev?: MouseEvent) {
const filesData = toRaw(files.value);
const isMissingAltText = filesData.filter(
file => file.type.startsWith('image/') || file.type.startsWith('video/') || file.type.startsWith('audio/')
file => file.type.startsWith('image/') || file.type.startsWith('video/') || file.type.startsWith('audio/'),
).some(file => !file.comment);
if (isMissingAltText) {
@ -914,8 +914,6 @@ async function post(ev?: MouseEvent) {
claimAchievement('notes1');
}
poll.value = null;
const text = postData.text ?? '';
const lowerCase = text.toLowerCase();
if ((lowerCase.includes('love') || lowerCase.includes('❤')) && lowerCase.includes('sharkey')) {