design: change weird profile overlap to a list

This commit is contained in:
Xylight committed 2024-05-30 18:15:04 -07:00
1 parent 6c6a3e3e72
commit 1834b90375
5 files changed
+88 -49

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
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}`