grain.social is a photo sharing platform built on atproto. grain.social
atproto photography appview
57
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: require authentication for all settings routes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7
+7
app/routes/settings/+layout.server.ts
··· 1 + import { redirect } from "@sveltejs/kit"; 2 + import type { LayoutServerLoad } from "./$types"; 3 + 4 + export const load: LayoutServerLoad = async ({ parent }) => { 5 + const { viewer } = await parent(); 6 + if (!viewer) throw redirect(302, "/"); 7 + };