{#snippet target(attachment)} {/snippet} {#if (profile.current?.user && amMod(profile.current.user, item.community)) || (profile.current?.user && isAdmin(profile.current.user))} {#if !item.community.local && !amMod(profile.current.user, item.community)} {$t('moderation.labelInstanceOnly')} {:else} {$t('moderation.label')} {/if} remove(item)} icon={Trash}> {#if isCommentView(item)} {item.comment.removed ? $t('moderation.restore') : $t('moderation.remove')} {/if} {#if profile.current?.user && profile.current.user?.local_user_view.person.id != item.creator.id} ban(item.creator_banned_from_community, item.creator, item.community)} icon={ShieldExclamation} > {item.creator_banned_from_community ? $t('moderation.ban.unbanFromCommunity') : $t('moderation.ban.banFromCommunity')} {:else} { if (!profile.current.jwt) return item.comment = ( await feature( !item.comment.distinguished, item.comment, profile.current.jwt, ) ).comment_view.comment }} icon={Megaphone} > {item.comment.distinguished ? $t('moderation.unfeature') : $t('moderation.feature')} {/if} {$t('moderation.modlog.comment')} {$t('moderation.modlog.user')} viewVotes(item)}> {$t('moderation.votes')} {/if} {#if profile.current?.user && isAdmin(profile.current.user)} {$t('admin.label')} remove(item, true)} icon={Fire} > {$t('admin.purge')} {/if}