Accounted for federated moderators

This commit is contained in:
root committed 2023-08-28 12:14:27 -04:00
1 parent 5ac8297457
commit 206b69d570
3 files changed
+6 -5

No files matched your search

@@ -115,7 +115,7 @@
</Button>
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
Moderation {#if !item.community.local} (Instance Only) {/if}
Moderation {#if !item.community.local && !amMod($profile.user, item.community)} (Instance Only) {/if}
</span>
<MenuButton
color="warning"
@@ -159,7 +159,7 @@
</MenuButton>
{#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
User {#if !item.community.local} (Instance Only) {/if}
User {#if !item.community.local && !amMod($profile.user, item.community)} (Instance Only) {/if}
</span>
<MenuButton
color="dangerSecondary"