finish URL rewrite, remove redundant logged_in state

This commit is contained in:
ari melody 2024-07-07 14:58:59 +01:00
parent a3fdd0007c
commit 4d771d8ebd
Signed by: ari
GPG key ID: CF99829C92678188
9 changed files with 20 additions and 27 deletions

View file

@ -1,9 +1,9 @@
<script>
import { server } from '$lib/client/server';
import { goto } from '$app/navigation';
import PostHeader from './PostHeader.svelte';
import Body from './Body.svelte';
import Post from './Post.svelte';
import ActionBar from './ActionBar.svelte';
import ReactionBar from './ReactionBar.svelte';
@ -22,7 +22,7 @@
event.ctrlKey)) return;
if (event.key && event.key !== "Enter") return;
}
goto(`/post/${post.id}`);
goto(`/${$server.host}/${post.account.mention}/${post.id}`);
}
</script>