feat: Use navigator.share for comments, fix comment links

This commit is contained in:
Xyphyn committed 2023-08-27 12:12:15 -07:00
1 parent af8a963445
commit 5d68d02d3e
1 file changed
+3 -3
@@ -71,9 +71,9 @@
<span class="text-xs opacity-80 py-1 my-1 px-4">Comment actions</span>
<MenuButton
on:click={() => {
navigator.clipboard.writeText(
`/comment/${getInstance()}/${comment.comment.id}`
)
navigator.share?.({
url: comment.comment.ap_id,
}) ?? navigator.clipboard.writeText(comment.comment.ap_id)
}}
>
<Icon src={Square2Stack} mini size="16" />