summaryrefslogtreecommitdiffstats
path: root/models/user/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user/user.go')
-rw-r--r--models/user/user.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/user/user.go b/models/user/user.go
index e5245dfbb0..536ec78a0b 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -425,14 +425,14 @@ func (u *User) GetDisplayName() string {
}
// GetCompleteName returns the the full name and username in the form of
-// "Full Name (@username)" if full name is not empty, otherwise it returns
-// "@username".
+// "Full Name (username)" if full name is not empty, otherwise it returns
+// "username".
func (u *User) GetCompleteName() string {
trimmedFullName := strings.TrimSpace(u.FullName)
if len(trimmedFullName) > 0 {
- return fmt.Sprintf("%s (@%s)", trimmedFullName, u.Name)
+ return fmt.Sprintf("%s (%s)", trimmedFullName, u.Name)
}
- return fmt.Sprintf("@%s", u.Name)
+ return u.Name
}
func gitSafeName(name string) string {