Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please show display name instead of username #179

Closed
verement opened this issue Feb 28, 2023 · 1 comment · Fixed by #182
Closed

Please show display name instead of username #179

verement opened this issue Feb 28, 2023 · 1 comment · Fixed by #182

Comments

@verement
Copy link

Feature Request

Is your feature request related to a problem? Please describe.

When viewing a user’s profile, the Controls menu shows an option like “Send username a message” which includes the user’s actual username. On a site that uses nicknames and where users do not control their own username, this username can be very unfriendly and meaningless.

Describe the solution you'd like

Please show the user’s display name instead of their username:

diff --git a/vendor/fof/byobu/js/src/forum/extend/User.js b/vendor/fof/byobu/js/src/forum/extend/User.js
--- a/vendor/fof/byobu/js/src/forum/extend/User.js
+++ b/vendor/fof/byobu/js/src/forum/extend/User.js
@@ -47,7 +47,7 @@ function message() {
               });
             },
           },
-          app.translator.trans('fof-byobu.forum.buttons.send_pd', { username: user.username() })
+          app.translator.trans('fof-byobu.forum.buttons.send_pd', { username: user.displayName() })
         )
       );
     }

Since the display name can be the same as the username depending on admin configuration, this should present no change for sites that do use the username as the display name.

Describe alternatives you've considered

None.

@luceos
Copy link
Contributor

luceos commented Feb 28, 2023

Hey @verement, that's great.

As you narrowed down the issue can you perhaps also provide the pull request? You can do this from GitHub as well.

@imorland imorland mentioned this issue Mar 24, 2023
3 tasks
imorland added a commit that referenced this issue Mar 24, 2023
@imorland imorland linked a pull request Mar 24, 2023 that will close this issue
3 tasks
imorland added a commit that referenced this issue Mar 24, 2023
* chore: use frontend extenders

* fix: use  rather than  #179

* fix: search user by slug #176

* chore: remove console.log()

* chore: return types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants