Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 01:44:24 +01:00

FIX: getIssueWatchers() get only aktive suscriber

This commit is contained in:
6543 2019-10-29 18:32:35 +01:00
parent 2de729046b
commit 5eca929185
No known key found for this signature in database
GPG key ID: A1CA74D27FD13271

View file

@ -65,6 +65,7 @@ func GetIssueWatchers(issueID int64) ([]*IssueWatch, error) {
func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error) {
err = e.
Where("`issue_watch`.issue_id = ?", issueID).
And("`issue_watch`.is_watching > ?", 0).
And("`user`.is_active = ?", true).
And("`user`.prohibit_login = ?", false).
Join("INNER", "`user`", "`user`.id = `issue_watch`.user_id").