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: route home to first pinned feed even when recent is pinned

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

+2 -3
+2 -3
app/routes/+page.svelte
··· 11 11 import { goto } from '$app/navigation' 12 12 import OGMeta from '$lib/components/atoms/OGMeta.svelte' 13 13 14 - // Redirect to first pinned feed if "recent" isn't pinned 14 + // Redirect to first pinned feed 15 15 $effect(() => { 16 16 const feeds = $pinnedFeeds 17 - const hasRecent = feeds.some((f) => f.id === 'recent') 18 - if (!hasRecent && feeds.length > 0) { 17 + if (feeds.length > 0 && feeds[0].id !== 'recent') { 19 18 goto(feeds[0].path, { replaceState: true }) 20 19 } 21 20 })