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: gallery count pluralization with string coercion

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

+1 -1
+1 -1
app/routes/profile/[did]/+page.svelte
··· 69 69 <span class="profile-handle">{p.handle ? `@${p.handle}` : did}</span> 70 70 </div> 71 71 <div class="stat-row"> 72 - <span><strong>{(p.galleryCount ?? 0).toLocaleString()}</strong> {p.galleryCount === 1 ? 'gallery' : 'galleries'}</span> 72 + <span><strong>{(p.galleryCount ?? 0).toLocaleString()}</strong> {Number(p.galleryCount) === 1 ? 'gallery' : 'galleries'}</span> 73 73 <a href="/profile/{did}/followers" class="stat-link"><strong>{((p.followersCount ?? 0) + followersOffset).toLocaleString()}</strong> followers</a> 74 74 <a href="/profile/{did}/following" class="stat-link"><strong>{(p.followsCount ?? 0).toLocaleString()}</strong> following</a> 75 75 </div>