feat: hide the community handle in the sidebar card in single-community mode

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011c5BZVwWdVLrdQi9htmuth
This commit is contained in:
larsiandClaude Opus 5.5 committed 2026-11-14 01:12:24 +01:00
1 parent a9bf3497fe
commit 302700ef66
1 file changed
+7 -4
@@ -1,4 +1,5 @@
<script lang="ts" module> <script lang="ts" module>
import { SINGLE_COMMUNITY } from '$lib/app/single'
import { client, getClient } from '$lib/api/client.svelte' import { client, getClient } from '$lib/api/client.svelte'
import type { CommunityModeratorView, CommunityView } from '$lib/api/types' import type { CommunityModeratorView, CommunityView } from '$lib/api/types'
import { profile } from '$lib/app/auth' import { profile } from '$lib/app/auth'
@@ -177,10 +178,12 @@
avatarCircle={false} avatarCircle={false}
> >
{#snippet nameDetail()} {#snippet nameDetail()}
!{fullCommunityName( {#if !SINGLE_COMMUNITY}
community_view.community.name, !{fullCommunityName(
community_view.community.actor_id, community_view.community.name,
)} community_view.community.actor_id,
)}
{/if}
{/snippet} {/snippet}
</EntityHeader> </EntityHeader>