mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-30 12:32:49 +09:00
Fix context usages (#35348)
This commit is contained in:
@ -27,6 +27,7 @@ import (
|
||||
"code.gitea.io/gitea/modules/base"
|
||||
"code.gitea.io/gitea/modules/container"
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
"code.gitea.io/gitea/modules/httplib"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/optional"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
@ -303,8 +304,8 @@ func (u *User) HomeLink() string {
|
||||
}
|
||||
|
||||
// HTMLURL returns the user or organization's full link.
|
||||
func (u *User) HTMLURL() string {
|
||||
return setting.AppURL + url.PathEscape(u.Name)
|
||||
func (u *User) HTMLURL(ctx context.Context) string {
|
||||
return httplib.MakeAbsoluteURL(ctx, u.HomeLink())
|
||||
}
|
||||
|
||||
// OrganisationLink returns the organization sub page link.
|
||||
|
Reference in New Issue
Block a user