aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Avatar.svelte4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte
index 75d39d9f..8c819709 100644
--- a/src/components/Avatar.svelte
+++ b/src/components/Avatar.svelte
@@ -12,9 +12,7 @@
$: src =
'/api/public/' +
- (user?.profile
- ? user.uuid + '-profile.webp'
- : 'punks/' + punk(user?.pubkey));
+ (user?.profile ? user.uuid + '-profile.webp' : 'punks/' + punk(user?.pubkey || user?.uuid || 'aa'));
</script>
<a href={link} class:pointer-events-none={disabled}>