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> <span class="text-xs opacity-80 py-1 my-1 px-4">Comment actions</span>
<MenuButton <MenuButton
on:click={() => { on:click={() => {
navigator.clipboard.writeText( navigator.share?.({
`/comment/${getInstance()}/${comment.comment.id}` url: comment.comment.ap_id,
) }) ?? navigator.clipboard.writeText(comment.comment.ap_id)
}} }}
> >
<Icon src={Square2Stack} mini size="16" /> <Icon src={Square2Stack} mini size="16" />