From 5d68d02d3ea80061e309b4447aae3972a7bd73f1 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sun, 27 Aug 2023 12:12:15 -0700 Subject: [PATCH] feat: Use navigator.share for comments, fix comment links --- src/lib/components/lemmy/comment/CommentActions.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/lemmy/comment/CommentActions.svelte b/src/lib/components/lemmy/comment/CommentActions.svelte index a380fe84..a8b1572a 100644 --- a/src/lib/components/lemmy/comment/CommentActions.svelte +++ b/src/lib/components/lemmy/comment/CommentActions.svelte @@ -71,9 +71,9 @@ Comment actions { - navigator.clipboard.writeText( - `/comment/${getInstance()}/${comment.comment.id}` - ) + navigator.share?.({ + url: comment.comment.ap_id, + }) ?? navigator.clipboard.writeText(comment.comment.ap_id) }} >