fix: show community in reports page

This commit is contained in:
Xyphyn committed 2023-10-03 15:55:32 -07:00
1 parent 0dd1d14320
commit facb1081c9
5 files changed
+3 -13

No files matched your search

@@ -8,6 +8,7 @@
export let comment: CommentView
export let view = $userSettings.view
export let community = false
</script>
<Material
@@ -24,6 +25,7 @@
nsfw={comment.post.nsfw}
published={new Date(comment.post.published + 'Z')}
saved={false}
community={community ? comment.community : undefined}
/>
<Button
color="secondary"
@@ -35,11 +35,6 @@
{/if}
</MenuButton>
{#if $profile?.user && $profile.user?.local_user_view.person.id != item.creator.id}
<MenuDivider>
User {#if !item.community.local && !amMod($profile.user, item.community)}
(Instance Only)
{/if}
</MenuDivider>
<MenuButton
color="danger-subtle"
on:click={() =>
@@ -154,11 +154,6 @@
{/if}
</MenuButton>
{#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id}
<MenuDivider>
User {#if !item.community.local && !amMod($profile.user, item.community)}
(Instance Only)
{/if}
</MenuDivider>
<MenuButton
color="danger-subtle"
on:click={() =>