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:
@ -414,7 +414,7 @@ func (c *Comment) HTMLURL(ctx context.Context) string {
|
||||
log.Error("loadRepo(%d): %v", c.Issue.RepoID, err)
|
||||
return ""
|
||||
}
|
||||
return c.Issue.HTMLURL() + c.hashLink(ctx)
|
||||
return c.Issue.HTMLURL(ctx) + c.hashLink(ctx)
|
||||
}
|
||||
|
||||
// Link formats a relative URL-string to the issue-comment
|
||||
@ -483,7 +483,7 @@ func (c *Comment) IssueURL(ctx context.Context) string {
|
||||
log.Error("loadRepo(%d): %v", c.Issue.RepoID, err)
|
||||
return ""
|
||||
}
|
||||
return c.Issue.HTMLURL()
|
||||
return c.Issue.HTMLURL(ctx)
|
||||
}
|
||||
|
||||
// PRURL formats a URL-string to the pull-request
|
||||
@ -503,7 +503,7 @@ func (c *Comment) PRURL(ctx context.Context) string {
|
||||
if !c.Issue.IsPull {
|
||||
return ""
|
||||
}
|
||||
return c.Issue.HTMLURL()
|
||||
return c.Issue.HTMLURL(ctx)
|
||||
}
|
||||
|
||||
// CommentHashTag returns unique hash tag for comment id.
|
||||
|
Reference in New Issue
Block a user