mirror of
https://github.com/go-gitea/gitea
synced 2025-09-15 05:08:13 +00:00
Fix context usages (#35348)
This commit is contained in:
@@ -320,7 +320,7 @@ func (a *Action) GetCommentHTMLURL(ctx context.Context) string {
|
||||
return "#"
|
||||
}
|
||||
|
||||
return a.Issue.HTMLURL()
|
||||
return a.Issue.HTMLURL(ctx)
|
||||
}
|
||||
|
||||
// GetCommentLink returns link to action comment.
|
||||
|
@@ -280,11 +280,11 @@ func (n *Notification) HTMLURL(ctx context.Context) string {
|
||||
if n.Comment != nil {
|
||||
return n.Comment.HTMLURL(ctx)
|
||||
}
|
||||
return n.Issue.HTMLURL()
|
||||
return n.Issue.HTMLURL(ctx)
|
||||
case NotificationSourceCommit:
|
||||
return n.Repository.HTMLURL() + "/commit/" + url.PathEscape(n.CommitID)
|
||||
return n.Repository.HTMLURL(ctx) + "/commit/" + url.PathEscape(n.CommitID)
|
||||
case NotificationSourceRepository:
|
||||
return n.Repository.HTMLURL()
|
||||
return n.Repository.HTMLURL(ctx)
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user