fix: user list not used in community page

This commit is contained in:
Xylight committed 2024-06-03 13:56:36 -07:00
1 parent 33371fe640
commit 42cae8c30b
2 files changed
+14 -26

No files matched your search

+3 -3
View File
@@ -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}`
`${prefix}/u/${person.name}@${new URL(person.actor_id).hostname}`