mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
Merge branch 'upstream-patch-name' of https://github.com/theowenyoung/lemmy-ui into theowenyoung-upstream-patch-name
This commit is contained in:
commit
ed37b30723
1 changed files with 2 additions and 2 deletions
|
@ -1464,13 +1464,13 @@ export const choicesConfig = {
|
|||
|
||||
export function communitySelectName(cv: CommunityView): string {
|
||||
return cv.community.local
|
||||
? cv.community.name
|
||||
? cv.community.title
|
||||
: `${hostname(cv.community.actor_id)}/${cv.community.name}`;
|
||||
}
|
||||
|
||||
export function personSelectName(pvs: PersonViewSafe): string {
|
||||
return pvs.person.local
|
||||
? pvs.person.name
|
||||
? pvs.person.display_name || pvs.person.name
|
||||
: `${hostname(pvs.person.actor_id)}/${pvs.person.name}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue