From 5eca9291858a821981992b0aaa38cef610d84bca Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 29 Oct 2019 18:32:35 +0100 Subject: [PATCH] FIX: getIssueWatchers() get only aktive suscriber --- models/issue_watch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/issue_watch.go b/models/issue_watch.go index 2f55c6a84d..06f6d61800 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").