0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-02-16 15:33:43 +01:00
gitea/models
David Schneiderbauer d766d0c4e0 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>
2017-09-16 08:18:25 +08:00
..
fixtures Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
migrations Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
access.go
access_test.go
action.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
action_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
admin.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
admin_test.go
attachment.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
attachment_test.go
branches.go improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
consistency.go Fix activity feed (#1779) 2017-05-26 09:38:18 +08:00
error.go
error_oauth2.go
external_login_user.go Add primary key and index to external login user table (#1656) 2017-05-02 16:41:44 +08:00
git_diff.go Fix diff of renamed and modified file (#1967) 2017-06-14 04:07:09 -05:00
git_diff_test.go
gpg_key.go
gpg_key_test.go
graph.go
graph_test.go
helper.go
issue.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
issue_comment.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
issue_comment_test.go
issue_indexer.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_mail.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
issue_milestone.go
issue_milestone_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
issue_user_test.go
issue_watch.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
issue_watch_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
lfs.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
login_source.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
mail.go
main_test.go
models.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
models_sqlite.go
models_test.go Cleaner IMO (#1361) 2017-03-22 22:30:40 +08:00
models_tidb.go
notification.go
notification_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
oauth2.go Replace calls to xorm UseBool with Where (#2237) 2017-08-01 13:47:31 +08:00
org.go Fixes 500 error on dashboard when using MSSQL (#2504) 2017-09-15 09:14:06 +03:00
org_team.go improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
org_team_test.go Fix typos in models/ and modules/ (#1248) 2017-03-15 08:52:01 +08:00
org_test.go
pull.go
pull_test.go Fix unit test race condition (#2516) 2017-09-15 10:54:25 +03:00
release.go
repo.go improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_editor.go
repo_issue.go
repo_list.go
repo_list_test.go
repo_mirror.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
repo_redirect.go Redirects for renamed repos (#807) 2017-02-05 22:35:03 +08:00
repo_redirect_test.go
repo_test.go
repo_unit.go
repo_watch.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
repo_watch_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
ssh_key.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
ssh_key_test.go
star.go refactor: small optimize for sql query (#940) 2017-02-15 14:01:50 +08:00
star_test.go
status.go Display commit status on landing page of repo (#1784) 2017-09-14 14:51:31 +08:00
status_test.go
test_fixtures.go
token.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
token_test.go
twofactor.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
unit.go Remove unit types commits and settings (#2161) 2017-07-17 10:04:43 +08:00
unit_tests.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
update.go Trigger sync webhooks on UI commit (#2302) 2017-08-17 15:22:08 +08:00
update_test.go
user.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
user_follow.go
user_follow_test.go
user_mail.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
webhook.go Use created & updated instead BeforeInsert & BeforeUpdate (#2482) 2017-09-13 08:18:22 +03:00
webhook_discord.go
webhook_slack.go
webhook_test.go
wiki.go
wiki_test.go Better settings for unit tests (#795) 2017-01-30 13:17:43 +08:00