Skip to content

Commit

Permalink
fix: show community in reports page
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyphyn committed Oct 3, 2023
1 parent 0dd1d14 commit facb108
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/lemmy/comment/CommentItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
export let comment: CommentView
export let view = $userSettings.view
export let community = false
</script>

<Material
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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={() =>
Expand Down
5 changes: 0 additions & 5 deletions src/lib/components/lemmy/moderation/ModerationMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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={() =>
Expand Down
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import { onMount } from 'svelte'
import { browser } from '$app/environment'
import { Forward, Icon } from 'svelte-hero-icons'
import { DEFAULT_INSTANCE_URL, instance } from '$lib/instance.js'
import { routes } from '$lib/util.js'
nProgress.configure({
Expand Down Expand Up @@ -57,7 +56,6 @@
})
}
})
$: title = routes[($page.route.id as keyof typeof routes) ?? '']
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/moderation/Report.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</script>

{#if item.type == 'comment'}
<CommentItem comment={item.item} />
<CommentItem community={true} comment={item.item} />
{:else if item.type == 'post'}
<Post post={item.item} />
{:else if item.type == 'message'}
Expand Down

0 comments on commit facb108

Please sign in to comment.