Skip to content

Commit

Permalink
revert go-gitea#2001 and fix issue comments hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jun 20, 2017
1 parent 75f166b commit a91be46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions models/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
comments := make([]*Comment, 0, 10)
sess := e.
Where("issue_id = ?", issueID).
Where("type = ?", CommentTypeComment).
Asc("created_unix")
if since > 0 {
sess.And("updated_unix >= ?", since)
Expand All @@ -583,7 +582,6 @@ func getCommentsByIssueIDSince(e Engine, issueID, since int64) ([]*Comment, erro
func getCommentsByRepoIDSince(e Engine, repoID, since int64) ([]*Comment, error) {
comments := make([]*Comment, 0, 10)
sess := e.Where("issue.repo_id = ?", repoID).
Where("comment.type = ?", CommentTypeComment).
Join("INNER", "issue", "issue.id = comment.issue_id").
Asc("comment.created_unix")
if since > 0 {
Expand Down

0 comments on commit a91be46

Please sign in to comment.