feat: use share and link to original post, close #129
This commit is contained in:
1 parent
e73d74ff31
commit
af8a963445
1 file changed
+6
-5
@@ -158,13 +158,14 @@
|
|||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
<MenuButton
|
<MenuButton
|
||||||
on:click={() =>
|
on:click={() => {
|
||||||
navigator.clipboard.writeText(
|
navigator.share?.({
|
||||||
`https://${getInstance()}/post/${post.post.id}`
|
url: post.post.ap_id,
|
||||||
)}
|
}) ?? navigator.clipboard.writeText(post.post.ap_id)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Icon src={Share} width={16} mini />
|
<Icon src={Share} width={16} mini />
|
||||||
Copy Link
|
Share
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{#if $profile?.jwt}
|
{#if $profile?.jwt}
|
||||||
<MenuButton
|
<MenuButton
|
||||||
|
|||||||
Reference in new issue
Block a user