]> source.dussan.org Git - gitea.git/commit
Display full name (#20171) (#20246)
authorzeripath <art27@cantab.net>
Tue, 5 Jul 2022 15:58:10 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Jul 2022 15:58:10 +0000 (16:58 +0100)
commit76ba23a14fa39036eb4d8c96b3326ea4842ef9e7
tree0ffdf3f4ffaa85e72bcbae0ad0d5c18c3401936e
parentc88a59bb23b324cc32b33e4275d0dc3eeb6776de
Display full name (#20171) (#20246)

Backport #20171

The setting `DEFAULT_SHOW_FULL_NAME` promises to use the user's full name everywhere it can be used.

Unfortunately the function `*user_model.User.ShortName()` currently uses the `.Name` instead - but this should also use the `.FullName()`.

Therefore we should make `*user_model.User.ShortName()` base its pre-shortened name on the `.FullName()` function.

Co-authored-by: Baekjun Kim <36013575+kimbj95@users.noreply.github.com>
models/user/user.go