+
{displayName ? user.display_name || user.name : user.name}
{#if showInstance}
@@ -66,8 +107,17 @@
{#if user.bot_account}
BOT
{/if}
- {#if photonBadge}
-
+ {#if envBadge}
+ {#if envBadge.icon == 'photon'}
+
+ {:else}
+
+ {/if}
{/if}
{/if}
diff --git a/src/lib/components/ui/navbar/Profile.svelte b/src/lib/components/ui/navbar/Profile.svelte
index 90057170..1270520d 100644
--- a/src/lib/components/ui/navbar/Profile.svelte
+++ b/src/lib/components/ui/navbar/Profile.svelte
@@ -36,6 +36,7 @@
import { site } from '$lib/lemmy'
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
import { t } from '$lib/translations'
+ import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
let showInstance = false
@@ -85,14 +86,14 @@
{/if}
{#if $profile?.user}
-
-
- {$profile?.user?.local_user_view?.person.name}
-
+
{:else}
{$t('nav.menu.label')}
{/if}