fix: entity graph gaps, ANNOTATE_ALL on transcription blocks, CSRF on client fetch #648

Merged
marcel merged 14 commits from worktree-feat+issue-286-notification-bell-form-actions into main 2026-05-20 20:36:16 +02:00
Showing only changes of commit 35fbaf8154 - Show all commits

View File

@@ -71,8 +71,9 @@ export async function load({ fetch, url }) {
export const actions = { export const actions = {
'dismiss-notification': async ({ request, fetch }) => { 'dismiss-notification': async ({ request, fetch }) => {
const data = await request.formData(); const data = await request.formData();
const notificationId = data.get('notificationId') as string | null; const raw = data.get('notificationId');
if (!notificationId) return fail(400, { error: 'Ungültige Benachrichtigungs-ID' }); const notificationId = typeof raw === 'string' ? raw : null;
if (!notificationId) return fail(400, { error: null });
const api = createApiClient(fetch); const api = createApiClient(fetch);
const result = await api.PATCH('/api/notifications/{id}/read', { const result = await api.PATCH('/api/notifications/{id}/read', {
params: { path: { id: notificationId } } params: { path: { id: notificationId } }