mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 07:47:02 +02:00
Fix context usages (#35348)
This commit is contained in:
1 parent
da5ce5c8e7
commit
e837c998b7
48 files changed
+98
-100
No files matched your search
@@ -405,14 +405,14 @@ func (issue *Issue) APIURL(ctx context.Context) string {
|
||||
}
|
||||
|
||||
// HTMLURL returns the absolute URL to this issue.
|
||||
func (issue *Issue) HTMLURL() string {
|
||||
func (issue *Issue) HTMLURL(ctx context.Context) string {
|
||||
var path string
|
||||
if issue.IsPull {
|
||||
path = "pulls"
|
||||
} else {
|
||||
path = "issues"
|
||||
}
|
||||
return fmt.Sprintf("%s/%s/%d", issue.Repo.HTMLURL(), path, issue.Index)
|
||||
return fmt.Sprintf("%s/%s/%d", issue.Repo.HTMLURL(ctx), path, issue.Index)
|
||||
}
|
||||
|
||||
// Link returns the issue's relative URL.
|
||||
|
||||
Reference in new issue
Block a user