misc: add login message to post create
This commit is contained in:
1 parent
128167bfe9
commit
f90ecb703c
4 files changed
+18
-3
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user