rewrite URLs to represent instance (#2)
This commit is contained in:
parent
41143cdddf
commit
a3fdd0007c
15 changed files with 199 additions and 168 deletions
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
import { server } from '$lib/client/server';
|
||||
|
||||
import BoostContext from './BoostContext.svelte';
|
||||
import ReplyContext from './ReplyContext.svelte';
|
||||
|
@ -31,7 +32,7 @@
|
|||
event.ctrlKey)) return;
|
||||
if (event.key && event.key !== "Enter") return;
|
||||
}
|
||||
goto(`/post/${post.id}`);
|
||||
goto(`/${$server.host}/${post.account.mention}/${post.id}`);
|
||||
}
|
||||
|
||||
let el;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue