misc: add login message to post create

This commit is contained in:
Xyphyn committed 2023-07-28 14:00:42 -07:00
1 parent 128167bfe9
commit f90ecb703c
4 files changed
+18 -3

No files matched your search

+8
View File
@@ -2,6 +2,14 @@
import { goto } from '$app/navigation'
import PostForm from '$lib/components/lemmy/post/PostForm.svelte'
import Card from '$lib/components/ui/Card.svelte'
import { authData } from '$lib/lemmy.js'
import { onMount } from 'svelte'
onMount(() => {
if (!$authData) {
goto('/login')
}
})
</script>
<svelte:head>