]> cat aescling's git repositories - mastodon.git/commit
Change e-mail domain blocks to block IPs dynamically (#17635)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Feb 2022 16:28:23 +0000 (17:28 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 16:28:23 +0000 (17:28 +0100)
commita29a982eaa0536a741b43ffb3397c74e3abe7196
tree12d9852def5f0ac7f1fe03e51113a65bafa68e8e
parent91cc8d1e636a3515b15758d0ad449a0477ea8c4c
Change e-mail domain blocks to block IPs dynamically (#17635)

* Change e-mail domain blocks to block IPs dynamically

* Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
* Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
20 files changed:
app/controllers/admin/email_domain_blocks_controller.rb
app/models/email_domain_block.rb
app/models/form/email_domain_block_batch.rb [new file with mode: 0644]
app/models/status.rb
app/validators/blacklisted_email_validator.rb
app/validators/email_mx_validator.rb
app/views/admin/email_domain_blocks/_email_domain_block.html.haml
app/views/admin/email_domain_blocks/index.html.haml
app/views/admin/email_domain_blocks/new.html.haml
app/workers/scheduler/email_domain_block_refresh_scheduler.rb [new file with mode: 0644]
config/locales/en.yml
config/locales/simple_form.en.yml
config/routes.rb
config/sidekiq.yml
db/migrate/20220224010024_add_ips_to_email_domain_blocks.rb [new file with mode: 0644]
db/schema.rb
spec/controllers/admin/email_domain_blocks_controller_spec.rb
spec/models/email_domain_block_spec.rb
spec/validators/blacklisted_email_validator_spec.rb
spec/validators/email_mx_validator_spec.rb