diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go index c7ceacaa6b..0e1710de7e 100644 --- a/models/user.go +++ b/models/user.go @@ -252,6 +252,11 @@ func (u *User) HomeLink() string { return setting.AppSubURL + "/" + u.Name } +// HTMLURL returns the user or organization's full link. +func (u *User) HTMLURL() string { + return setting.AppURL + u.Name +} + // GenerateEmailActivateCode generates an activate code based on user information and given e-mail. func (u *User) GenerateEmailActivateCode(email string) string { code := base.CreateTimeLimitCode( |