diff options
author | 6543 <6543@obermui.de> | 2020-02-27 11:07:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 10:07:05 +0000 |
commit | a924a90349a78ebe8e7eb560e435a7ddc1de9b84 (patch) | |
tree | 68e12c711eff73d045cd2b3e29ba34706d8fc577 /models/issue_watch.go | |
parent | 9a476113f01602f8418f8f66e7eceac27fd480c5 (diff) | |
download | gitea-a924a90349a78ebe8e7eb560e435a7ddc1de9b84.tar.gz gitea-a924a90349a78ebe8e7eb560e435a7ddc1de9b84.zip |
[BugFix] Avoid mailing explicit unwatched (#10475)
* Avoid mailing explicit unwatched
* CI.restart()
* back to normal
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'models/issue_watch.go')
-rw-r--r-- | models/issue_watch.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue_watch.go b/models/issue_watch.go index 9046e4d2f7..dea6aa5a52 100644 --- a/models/issue_watch.go +++ b/models/issue_watch.go @@ -64,11 +64,11 @@ func getIssueWatch(e Engine, userID, issueID int64) (iw *IssueWatch, exists bool return } -// GetIssueWatchersIDs returns IDs of subscribers to a given issue id +// GetIssueWatchersIDs returns IDs of subscribers or explicit unsubscribers to a given issue id // but avoids joining with `user` for performance reasons // User permissions must be verified elsewhere if required -func GetIssueWatchersIDs(issueID int64) ([]int64, error) { - return getIssueWatchersIDs(x, issueID, true) +func GetIssueWatchersIDs(issueID int64, watching bool) ([]int64, error) { + return getIssueWatchersIDs(x, issueID, watching) } func getIssueWatchersIDs(e Engine, issueID int64, watching bool) ([]int64, error) { |