From 852ee620f0a2f6a83cf83eba860ca951b66bb7e2 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 31 May 2022 01:04:10 +0200 Subject: Use supabase --- src/lib/components/post/post.svelte | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/lib/components/post') diff --git a/src/lib/components/post/post.svelte b/src/lib/components/post/post.svelte index 535f7ac..b0f99e4 100644 --- a/src/lib/components/post/post.svelte +++ b/src/lib/components/post/post.svelte @@ -15,26 +15,30 @@ class="post-meta" title={$_('post.metadata_title', { values: { count: index + 1, total: count } })} > - - - {$_('post.author_credit')} - {post.author.handle}. - + + {#if post.author} + + {$_('post.author_credit')} + {post.author.handle}. + + {:else} + ???? + {/if} {#if post.topic} - ({$_('post.topic_location')} {post.topic.title}.) + ({$_('post.topic_location')} {post.topic.title}.) {/if}
{post.text} -- cgit