Commit cb51f8f8 authored by Stelios Milidonis's avatar Stelios Milidonis
Browse files

fixxing fullname

parent 16c9e00d
Pipeline #5384 failed with stage
in 0 seconds
......@@ -554,18 +554,19 @@ func (u *User) GetFullName() string {
func (u *User) getDisplayName(baseName, nameFormat string) string {
displayName := baseName
if nameFormat == SHOW_NICKNAME_FULLNAME || nameFormat == SHOW_NICKNAME_USERNAME {
if nameFormat == SHOW_NICKNAME_FULLNAME {
if len(u.Nickname) > 0 {
displayName = u.Nickname
} else if nameFormat == SHOW_NICKNAME_FULLNAME && len(fullname) > 0 {
displayName = fullname
} else if fullName := u.GetFullName(); len(fullName) > 0 {
displayName = fullName
}
} else if nameFormat == SHOW_FULLNAME {
if len(fullname) > 0 {
displayName = fullname
if fullName := u.GetFullName(); len(fullName) > 0 {
displayName = fullName
}
}
return displayName
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment