{#if $profile?.user && (amMod($profile?.user, comment.community) || isAdmin($profile.user))} {/if} Comment actions { navigator.clipboard.writeText( `${$page.url.origin}/post/${getInstance()}/${ comment.post.id }?thread=${comment.comment.path}#${comment.comment.id}` ) }} > Copy Link {#if $profile?.jwt} {#if comment.creator.id == $profile.user?.local_user_view.person.id} dispatcher('edit', comment)}> Edit {/if} {comment.saved ? 'Unsave' : 'Save'} {#if $profile?.user && $profile.jwt && isCommentMutable(comment, $profile.user.local_user_view)} { if (!$profile?.jwt) return try { await getClient().deleteComment({ auth: $profile.jwt, comment_id: comment.comment.id, deleted: true, }) toast({ content: 'The comment was deleted.', type: 'success', }) } catch (error) { toast({ content: 'Failed to delete comment', type: 'error', }) } }} > Delete {/if} {#if $profile.jwt && $profile.user?.local_user_view.person.id != comment.creator.id} report(comment)} color="dangerSecondary"> Report {/if} {/if}