diff --git a/models/issue_watch.go b/models/issue_watch.go index 2f55c6a84db..06f6d618008 100644 --- a/models/issue_watch.go +++ b/models/issue_watch.go @@ -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").