diff --git a/src/lib/lemmy.ts b/src/lib/lemmy.ts index c1aa0d27..40097b11 100644 --- a/src/lib/lemmy.ts +++ b/src/lib/lemmy.ts @@ -86,6 +86,7 @@ authData.subscribe(async (data) => { localStorage.setItem('user', JSON.stringify(data)) } } catch (error) { + console.error(error) authData.set(undefined) } }) diff --git a/src/routes/c/[name]/+page.svelte b/src/routes/c/[name]/+page.svelte index 772b0e1a..26085383 100644 --- a/src/routes/c/[name]/+page.svelte +++ b/src/routes/c/[name]/+page.svelte @@ -14,23 +14,32 @@ {data.posts.posts[0]?.community.name} + + {#if data.community.community_view.community.description} + + {/if} +
- {#await data.streamed.community then community} -
- -
+
- Sidebar -
-
- -
- {/await} + > + Sidebar +
+ + +
@@ -67,39 +76,6 @@