Fix node/user avatar generated wrongly from hostname

It should always be generated from the Node Id.
This commit is contained in:
Rūdolfs Ošiņš
2026-05-05 16:01:01 +02:00
parent 2e19c93a9c
commit 613e5e1810
11 changed files with 41 additions and 10 deletions
+2 -1
View File
@@ -19,6 +19,7 @@
export let baseUrl: BaseUrl;
export let node: NodeIdentity;
export let did: { prefix: string; pubkey: string };
export let nodeId: string;
export let nodeAvatarUrl: string | undefined;
export let stats: NodeStats;
</script>
@@ -103,7 +104,7 @@
alt="Node avatar"
src={nodeAvatarUrl} />
{:else}
<UserAvatar nodeId={baseUrl.hostname} styleWidth="1.5rem" />
<UserAvatar {nodeId} styleWidth="1.5rem" />
{/if}
{baseUrl.hostname}
</Link>
+2
View File
@@ -20,6 +20,7 @@ export interface UserLoadedRoute {
did: { prefix: string; pubkey: string };
baseUrl: BaseUrl;
node: NodeIdentity;
nodeId: string;
nodeAvatarUrl: string | undefined;
stats: NodeStats;
};
@@ -56,6 +57,7 @@ export async function loadUserRoute({
did: parsedDid,
baseUrl,
node: user,
nodeId: node.id,
nodeAvatarUrl: node.avatarUrl,
stats,
},