Accounted for federated moderators
This commit is contained in:
1 parent
5ac8297457
commit
206b69d570
3 files changed
+6
-5
No files matched your search
@@ -16,6 +16,7 @@
|
||||
import { removalTemplate } from '$lib/components/lemmy/moderation/moderation.js'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import { fullCommunityName } from '$lib/util.js'
|
||||
import { amMod, isAdmin } from './moderation'
|
||||
|
||||
export let open: boolean
|
||||
export let item: PostView | CommentView | undefined = undefined
|
||||
@@ -201,7 +202,7 @@
|
||||
bind:value={reason}
|
||||
/>
|
||||
|
||||
{#if !removed}
|
||||
{#if !removed && ( amMod($profile.user, item.community) || (isAdmin($profile.user) && item.community.local))}
|
||||
<Checkbox bind:checked={commentReason}>Reply with reason</Checkbox>
|
||||
|
||||
{#if commentReason}
|
||||
|
||||
Reference in new issue
Block a user