mirror of https://github.com/gogs/gogs.git
api: fix ListIssueComments API (#4587)
parent
c9d76a381b
commit
261237745f
|
@ -110,6 +110,12 @@ func (c *Comment) loadAttributes(e Engine) (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("getIssueByID [%d]: %v", c.IssueID, err)
|
return fmt.Errorf("getIssueByID [%d]: %v", c.IssueID, err)
|
||||||
}
|
}
|
||||||
|
if c.Issue.Repo == nil {
|
||||||
|
c.Issue.Repo, err = getRepositoryByID(e, c.Issue.RepoID)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("getRepositoryByID [%d]: %v", c.Issue.RepoID, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Attachments == nil {
|
if c.Attachments == nil {
|
||||||
|
|
Loading…
Reference in New Issue