misc: use instance link for 'copy link'
This commit is contained in:
1 parent
d9bcfb5525
commit
b0c116246d
1 file changed
+5
-5
@@ -11,6 +11,7 @@
|
|||||||
Icon,
|
Icon,
|
||||||
Newspaper,
|
Newspaper,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
|
Share,
|
||||||
Square2Stack,
|
Square2Stack,
|
||||||
Trash,
|
Trash,
|
||||||
UserCircle,
|
UserCircle,
|
||||||
@@ -158,13 +159,12 @@
|
|||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
<MenuButton
|
<MenuButton
|
||||||
on:click={() => {
|
on:click={() =>
|
||||||
navigator.clipboard.writeText(
|
navigator.clipboard.writeText(
|
||||||
`${$page.url.origin}/post/${getInstance()}/${post.post.id}`
|
`https://${getInstance()}/post/${post.post.id}`
|
||||||
)
|
)}
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Icon src={Square2Stack} width={16} mini />
|
<Icon src={Share} width={16} mini />
|
||||||
Copy Link
|
Copy Link
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{#if $profile?.jwt}
|
{#if $profile?.jwt}
|
||||||
|
|||||||
Reference in new issue
Block a user