forked from blisstown/campfire
finish URL rewrite, remove redundant logged_in state
This commit is contained in:
parent
a3fdd0007c
commit
4d771d8ebd
9 changed files with 20 additions and 27 deletions
|
@ -4,7 +4,7 @@
|
|||
import { app } from '$lib/client/app.js';
|
||||
import { parsePost } from '$lib/post.js';
|
||||
import { goto, afterNavigate } from '$app/navigation';
|
||||
import { base as previous_page } from '$app/paths'
|
||||
import { base } from '$app/paths'
|
||||
|
||||
import Post from '$lib/ui/post/Post.svelte';
|
||||
import Button from '$lib/ui/Button.svelte';
|
||||
|
@ -13,6 +13,7 @@
|
|||
|
||||
let post;
|
||||
let error = false;
|
||||
let previous_page = base;
|
||||
|
||||
if (($server && $server.host === data.server_host) && $app) {
|
||||
post = fetchPost(data.post_id, $app.token);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue