Only used in the search page.
userListing(user: UserView) {
return [
<span>
- <UserListing user={user} />
+ <UserListing user={user} showApubName />
</span>,
<span>{` - ${i18n.t('number_of_comments', {
count: user.number_of_comments,
useApubName?: boolean;
muted?: boolean;
hideAvatar?: boolean;
+ showApubName?: boolean;
}
export class UserListing extends Component<UserListingProps, any> {
? user.preferred_username
: apubName;
+ if (this.props.showApubName && !local && user.preferred_username) {
+ displayName = `${displayName} (${apubName})`;
+ }
+
return (
<>
<Link