diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-09-07 11:53:35 -0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-09-07 22:53:35 +0800 |
commit | 09badd55dd25a9b372e4a2e34bbe6bfcbfa0189a (patch) | |
tree | f8f8da656ab8491ab4b7250f7850621e661919da /models/issue.go | |
parent | 418be61040dd05f2e058f5bc20697c1fe177cf75 (diff) | |
download | gitea-09badd55dd25a9b372e4a2e34bbe6bfcbfa0189a.tar.gz gitea-09badd55dd25a9b372e4a2e34bbe6bfcbfa0189a.zip |
Add reviewrs as participants (#8121)
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index b849f97bd4..511bfa31c4 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1455,7 +1455,7 @@ func getParticipantsByIssueID(e Engine, issueID int64) ([]*User, error) { userIDs := make([]int64, 0, 5) if err := e.Table("comment").Cols("poster_id"). Where("`comment`.issue_id = ?", issueID). - And("`comment`.type = ?", CommentTypeComment). + And("`comment`.type in (?,?,?)", CommentTypeComment, CommentTypeCode, CommentTypeReview). And("`user`.is_active = ?", true). And("`user`.prohibit_login = ?", false). Join("INNER", "`user`", "`user`.id = `comment`.poster_id"). |