]> source.dussan.org Git - gitea.git/commit
Prevent sending emails and notifications to inactive users (#2384)
authorDavid Schneiderbauer <daviian@users.noreply.github.com>
Sat, 16 Sep 2017 00:18:25 +0000 (02:18 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Sat, 16 Sep 2017 00:18:25 +0000 (08:18 +0800)
commitd766d0c4e064bf7f66098123f39d15c2dc67e415
tree274eebecadd724502dd5c82e95f2f6f4cc4d6d34
parentb496e3e1cc70829e5a6f78f3dff28277993f8406
Prevent sending emails and notifications to inactive users (#2384)

* Filter inactive users before sending emails or creating browser notifications

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix formatting issues

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* included requested changes

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* optimized database queries

* rebasing new master and add tablenames for clarification in xorm queries

* remove escaped quotationmarks using backticks

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
13 files changed:
models/fixtures/repository.yml
models/fixtures/watch.yml
models/issue.go
models/issue_mail.go
models/issue_test.go
models/issue_watch.go
models/issue_watch_test.go
models/migrations/migrations.go
models/migrations/v41.go [new file with mode: 0644]
models/notification_test.go
models/repo_watch.go
models/repo_watch_test.go
models/user.go