diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte
index f201d80a..16bfbef5 100644
--- a/src/lib/components/lemmy/community/CommunityCard.svelte
+++ b/src/lib/components/lemmy/community/CommunityCard.svelte
@@ -44,6 +44,8 @@
import Expandable from '$lib/components/ui/Expandable.svelte'
import LabelStat from '$lib/components/ui/LabelStat.svelte'
import ShieldIcon from '../moderation/ShieldIcon.svelte'
+ import ItemList from '../generic/ItemList.svelte'
+ import { communityLink, userLink } from '$lib/lemmy/generic'
export let community_view: CommunityView
export let moderators: CommunityModeratorView[] = []
@@ -250,29 +252,15 @@
Moderators
-
- {#each moderators as moderator}
-
-
-
-
- {moderator.moderator.name}
-
- {/each}
-
+ ({
+ id: m.moderator.id,
+ name: m.moderator.name,
+ url: userLink(m.moderator),
+ avatar: m.moderator.avatar,
+ instance: new URL(m.moderator.actor_id).hostname,
+ }))}
+ />
{/if}
diff --git a/src/lib/lemmy/generic.ts b/src/lib/lemmy/generic.ts
index 4eecef56..79f33e0f 100644
--- a/src/lib/lemmy/generic.ts
+++ b/src/lib/lemmy/generic.ts
@@ -1,8 +1,8 @@
-import { fullCommunityName } from "$lib/util";
-import type { Community, Person } from "lemmy-js-client";
+import { fullCommunityName } from '$lib/util'
+import type { Community, Person } from 'lemmy-js-client'
export const communityLink = (community: Community, prefix: string = '') =>
`${prefix}/c/${fullCommunityName(community.name, community.actor_id)}`
export const userLink = (person: Person, prefix: string = '') =>
- `${prefix}/c/${person.name}@${new URL(person.actor_id).hostname}`
\ No newline at end of file
+ `${prefix}/u/${person.name}@${new URL(person.actor_id).hostname}`