{#if profile.data?.user && (amMod(profile.data?.user, comment.community) || isAdmin(profile.data.user))} {/if} {#snippet target()} {/snippet} {$t('comment.actions.label')} { if (navigator.share) navigator.share?.({ url: comment.comment.ap_id, }) else navigator.clipboard.writeText(comment.comment.ap_id) }} >
{$t('post.actions.more.share')}
{#if profile.data?.jwt} {#if comment.creator.id == profile.data.user?.local_user_view.person.id} onedit?.(comment)}> {$t('post.actions.more.edit')} {/if} { if (profile.data?.jwt) comment.saved = await save(comment, !comment.saved) }} > {comment.saved ? $t('post.actions.unsave') : $t('post.actions.save')} {#if profile.data?.user && profile.data.jwt && profile.data.user.local_user_view.person.id == comment.creator.id} { if (profile.data?.jwt) comment.comment.deleted = await deleteItem( comment, !comment.comment.deleted, ) }} > {comment.comment.deleted ? $t('post.actions.more.restore') : $t('post.actions.more.delete')} {/if} {#if profile.data.jwt && profile.data.user?.local_user_view.person.id != comment.creator.id} report(comment)} color="danger-subtle"> {$t('moderation.report')} {/if} {/if}