feat: switch to new account system
This commit is contained in:
1 parent
54ab6fdc82
commit
2da415b670
38 files changed
+222
-362
No files matched your search
@@ -2,11 +2,11 @@
|
||||
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 { profile } from '$lib/auth.js'
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
onMount(() => {
|
||||
if (!$authData) {
|
||||
if (!$profile?.jwt) {
|
||||
goto('/login')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user