undo mistakenly moved code

This commit is contained in:
David Schneiderbauer 2018-06-05 09:51:50 +02:00
parent abdaa54189
commit 4e21fc78fe
No known key found for this signature in database
GPG Key ID: 576113B2803B3EAB

View File

@ -120,9 +120,9 @@ func createOrUpdateIssueNotifications(e Engine, issue *Issue, notificationAuthor
}
issue.loadRepo(e)
issue.Repo.Units = nil
for _, watch := range watches {
issue.Repo.Units = nil
if issue.IsPull && !issue.Repo.CheckUnitUser(watch.UserID, false, UnitTypePullRequests) {
continue
}