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.

Revert "fix: route home to first pinned feed even when recent is pinned"

This reverts commit 2526728d53430dbb95771ee8f548b0be97485291.

+3 -2
+3 -2
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 14 + // Redirect to first pinned feed if "recent" isn't pinned 15 15 $effect(() => { 16 16 const feeds = $pinnedFeeds 17 - if (feeds.length > 0 && feeds[0].id !== 'recent') { 17 + const hasRecent = feeds.some((f) => f.id === 'recent') 18 + if (!hasRecent && feeds.length > 0) { 18 19 goto(feeds[0].path, { replaceState: true }) 19 20 } 20 21 })