From 01f4467de98729c16ce9e7ea7aac9cef0e8cced4 Mon Sep 17 00:00:00 2001 From: sant0s12 Date: Sat, 2 Mar 2024 11:28:01 +0100 Subject: [PATCH] Fix fetching profile --- src/lib/components/PostHeader.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index 86144f8..df1a2b7 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -28,7 +28,7 @@ joinedLinks = communityLinks.join(''); } - $: post.author.fetchProfile(); + $: if (post.author.profile === undefined) post.author.fetchProfile().then(() => (post = post)); // Await the communities onMount(async () => {