aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/user/user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/user/user.go b/models/user/user.go
index 9460bd38fe..000af58513 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -485,6 +485,9 @@ func (u *User) GitName() string {
// ShortName ellipses username to length
func (u *User) ShortName(length int) string {
+ if setting.UI.DefaultShowFullName && len(u.FullName) > 0 {
+ return base.EllipsisString(u.FullName, length)
+ }
return base.EllipsisString(u.Name, length)
}