fix bug where posting with no text can get achievement
All checks were successful
Lint / pnpm_install (pull_request) Successful in 2m8s
Test (backend) / unit (22.x) (pull_request) Successful in 10m4s
Test (production install and build) / production (22.x) (pull_request) Successful in 2m42s
Test (frontend) / vitest (22.x) (pull_request) Successful in 4m39s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m25s
Lint / lint (backend) (pull_request) Successful in 4m43s
Lint / lint (frontend) (pull_request) Successful in 10m42s
Lint / lint (misskey-js) (pull_request) Successful in 4m21s
Lint / lint (sw) (pull_request) Successful in 3m11s
Lint / typecheck (backend) (pull_request) Successful in 4m11s
Lint / typecheck (misskey-js) (pull_request) Successful in 2m58s
Test (backend) / e2e (22.x) (pull_request) Successful in 7m0s

This commit is contained in:
Leah 2025-01-19 23:52:20 +01:00
parent 5780e9c84e
commit ff681a8e91

View file

@ -783,7 +783,8 @@ async function post(ev?: MouseEvent) {
if (canceled) return;
if (result === 'cancel') return;
} else {
claimAchievement('altTextNovice');
//There needs to be at least 1 file
if (filesData.length > 0) claimAchievement('altTextNovice');
}
}