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: show unpinned default feeds so they can be re-pinned

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

+16
+16
app/routes/feeds/+page.svelte
··· 8 8 9 9 const coreIds = new Set(DEFAULT_PINNED.map((f) => f.id)) 10 10 const customFeeds = $derived($pinnedFeeds.filter((f) => !coreIds.has(f.id))) 11 + const pinnedIds = $derived(new Set($pinnedFeeds.map((f) => f.id))) 12 + const unpinnedDefaults = $derived(DEFAULT_PINNED.filter((f) => !pinnedIds.has(f.id))) 11 13 12 14 // Drag state 13 15 let dragIndex: number | null = $state(null) ··· 134 136 {#if $isAuthenticated} 135 137 <PinButton {feed} stopPropagation /> 136 138 {/if} 139 + </a> 140 + {/each} 141 + {/if} 142 + 143 + {#if unpinnedDefaults.length > 0 && $isAuthenticated} 144 + <div class="section-label">Feeds</div> 145 + {#each unpinnedDefaults as feed (feed.id)} 146 + {@const Icon = feedIcon(feed)} 147 + <a href={feed.path} class="feed-row"> 148 + <span class="feed-icon"> 149 + <Icon size={18} /> 150 + </span> 151 + <span class="feed-label">{feed.label}</span> 152 + <PinButton {feed} stopPropagation /> 137 153 </a> 138 154 {/each} 139 155 {/if}