{$t('profile.profile')} {#if profile.current?.jwt} {@const notifications = profile.inbox.notifications} {#if notifications.inbox > 0} {notifications.inbox > 99 ? '∞' : notifications.inbox} {/if} {:else} {/if} {$t('nav.menu.app')} {#if profile.current?.user} {$t('content.communities')}
{#if profile.current?.user.moderates.length > 0} {#snippet title()} {$t('routes.profile.moderates')} {#snippet action()} {profile.current.user?.moderates.length} {/snippet} {/snippet} ({ id: i.community.id, name: i.community.title, url: communityLink(i.community), avatar: i.community.icon, instance: new URL(i.community.actor_id).hostname, }))} /> {/if} {#snippet title()} {$t('profile.subscribed')} {#snippet action()} {profile.current.user?.follows.length} {/snippet} {/snippet} ({ id: i.community.id, name: i.community.title, url: communityLink(i.community), avatar: i.community.icon, instance: new URL(i.community.actor_id).hostname, }))} />
{/if}
{__VERSION__}
{#if env.PUBLIC_XYLIGHT_MODE?.toLowerCase() == 'true'} {$t('nav.menu.source')} {$t('nav.menu.donate')} {/if}