From b0c116246d4ac0887d76717b3f873eb219f037dd Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sat, 12 Aug 2023 11:01:22 -0700 Subject: [PATCH] misc: use instance link for 'copy link' --- src/lib/components/lemmy/post/PostActions.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte index ad72c456..117624b8 100644 --- a/src/lib/components/lemmy/post/PostActions.svelte +++ b/src/lib/components/lemmy/post/PostActions.svelte @@ -11,6 +11,7 @@ Icon, Newspaper, PencilSquare, + Share, Square2Stack, Trash, UserCircle, @@ -158,13 +159,12 @@ {/if} { + on:click={() => navigator.clipboard.writeText( - `${$page.url.origin}/post/${getInstance()}/${post.post.id}` - ) - }} + `https://${getInstance()}/post/${post.post.id}` + )} > - + Copy Link {#if $profile?.jwt}