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