]> source.dussan.org Git - gitea.git/commit
Always show usernames in reaction tooltips (#26444)
authorPanagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Thu, 10 Aug 2023 21:20:01 +0000 (21:20 +0000)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2023 21:20:01 +0000 (21:20 +0000)
commit2cbd377e1f8d01c1e4a472f6ca5d770af63dbea4
tree8a3c22f72370c2e6338f41f9db566919b346e9be
parent7a69d71733b5a01b6bb9a9b32c4e13afa5fe6c96
Always show usernames in reaction tooltips (#26444)

Even if GetDisplayName() is normally preferred elsewhere, this change
provides more consistency, as usernames are also always being shown
when participating in a conversation taking place in an issue or
a pull request. This change makes conversations easier to follow, as
you would not have to have a mental association between someone's
username and someone's real name in order to follow what is happening.

This behavior matches GitHub's. Optimally, both the username and the
full name (if applicable) could be shown, but such an effort is a
much bigger task that needs to be thought out well.
models/issues/reaction.go
models/issues/reaction_test.go