fix: user list not used in community page
This commit is contained in:
1 parent
33371fe640
commit
42cae8c30b
2 files changed
+14
-26
No files matched your search
@@ -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}`
|
||||
Reference in new issue
Block a user