Browse Source

api: fix ListIssueComments API (#4587)

pull/4590/merge
Andy Hochhaus 7 years ago committed by 无闻
parent
commit
261237745f
  1. 6
      models/comment.go

6
models/comment.go

@ -110,6 +110,12 @@ func (c *Comment) loadAttributes(e Engine) (err error) {
if err != nil {
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 {

Loading…
Cancel
Save