mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Use community title and user display name for dropdown.
This commit is contained in:
parent
ed37b30723
commit
bfb43aae77
1 changed files with 3 additions and 4 deletions
|
@ -1465,13 +1465,12 @@ export const choicesConfig = {
|
|||
export function communitySelectName(cv: CommunityView): string {
|
||||
return cv.community.local
|
||||
? cv.community.title
|
||||
: `${hostname(cv.community.actor_id)}/${cv.community.name}`;
|
||||
: `${hostname(cv.community.actor_id)}/${cv.community.title}`;
|
||||
}
|
||||
|
||||
export function personSelectName(pvs: PersonViewSafe): string {
|
||||
return pvs.person.local
|
||||
? pvs.person.display_name || pvs.person.name
|
||||
: `${hostname(pvs.person.actor_id)}/${pvs.person.name}`;
|
||||
let pName = pvs.person.display_name || pvs.person.name;
|
||||
return pvs.person.local ? pName : `${hostname(pvs.person.actor_id)}/${pName}`;
|
||||
}
|
||||
|
||||
export function initializeSite(site: GetSiteResponse) {
|
||||
|
|
Loading…
Reference in a new issue