mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 01:54:26 +00:00
Revert "FIX: getIssueWatchers() get only aktive suscriber"
This reverts commit 5eca929185
.
This commit is contained in:
parent
e8bb5572a0
commit
2ca4a7e49e
@ -65,7 +65,6 @@ func GetIssueWatchers(issueID int64) ([]*IssueWatch, error) {
|
|||||||
func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error) {
|
func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error) {
|
||||||
err = e.
|
err = e.
|
||||||
Where("`issue_watch`.issue_id = ?", issueID).
|
Where("`issue_watch`.issue_id = ?", issueID).
|
||||||
And("`issue_watch`.is_watching > ?", 0).
|
|
||||||
And("`user`.is_active = ?", true).
|
And("`user`.is_active = ?", true).
|
||||||
And("`user`.prohibit_login = ?", false).
|
And("`user`.prohibit_login = ?", false).
|
||||||
Join("INNER", "`user`", "`user`.id = `issue_watch`.user_id").
|
Join("INNER", "`user`", "`user`.id = `issue_watch`.user_id").
|
||||||
|
Loading…
Reference in New Issue
Block a user