mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Fix node/user avatar generated wrongly from hostname
It should always be generated from the Node Id.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user