{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
Moderation {#if !item.community.local && !amMod($profile.user, item.community)} (Instance Only) {/if}
lock(!item.post.locked)} loading={locking} disabled={locking} >
{item.post.locked ? 'Unlock' : 'Lock'}
pin(isPostView(item) ? !item.post.featured_community : false)} loading={pinning} disabled={pinning} >
{item.post.featured_community ? 'Unfeature' : 'Feature'}
{#if isAdmin($profile.user)}
Community
{/if}
remove(item)}>
{#if isCommentView(item)} {item.comment.removed ? 'Restore' : 'Remove'} {:else} {item.post.removed ? 'Restore' : 'Remove'} {/if}
{#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id}
ban(item.creator_banned_from_community, item.creator, item.community)} >
{item.creator_banned_from_community ? 'Unban from community' : 'Ban from community'}
{/if} {/if} {#if $profile?.user && isAdmin($profile.user)}
Admin
pin(isPostView(item) ? !item.post.featured_local : false, true)} >
{item.post.featured_local ? 'Unfeature' : 'Feature'}
Instance
remove(item, true)}>
Purge
{/if}