Where:src/routes/akti/[aktiId]/+page.server.ts and src/routes/akti/[aktiId]/comment/+page.server.ts Why: Currently returning error(400) on validation failure, which wipes form data and shows a generic error page. Fix: Use SvelteKit's fail(400, { message: 'Invalid data' }) to keep the user on the page and preserve their input.
**Where:** `src/routes/akti/[aktiId]/+page.server.ts` and `src/routes/akti/[aktiId]/comment/+page.server.ts`
**Why:** Currently returning `error(400)` on validation failure, which wipes form data and shows a generic error page.
**Fix:** Use SvelteKit's `fail(400, { message: 'Invalid data' })` to keep the user on the page and preserve their input.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Where:
src/routes/akti/[aktiId]/+page.server.tsandsrc/routes/akti/[aktiId]/comment/+page.server.tsWhy: Currently returning
error(400)on validation failure, which wipes form data and shows a generic error page.Fix: Use SvelteKit's
fail(400, { message: 'Invalid data' })to keep the user on the page and preserve their input.