]> cat aescling's git repositories - mastodon.git/commit
Change domain blocks to automatically support subdomains (#11138)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 21 Jun 2019 22:13:10 +0000 (00:13 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jun 2019 22:13:10 +0000 (00:13 +0200)
commit707ddf7808f90e3ab042d7642d368c2ce8e95e6f
tree2fdc55f43eff9ea113a989520f72020ccdaa6649
parent49ebda4d49af50b375126e4a8285686fb6448a60
Change domain blocks to automatically support subdomains (#11138)

* Change domain blocks to automatically support subdomains

If a more authoritative domain is blocked (example.com), then the
same block will be applied to a subdomain (foo.example.com)

* Match subdomains of existing accounts when blocking/unblocking domains

* Improve code style
17 files changed:
app/controllers/admin/domain_blocks_controller.rb
app/controllers/admin/instances_controller.rb
app/controllers/media_proxy_controller.rb
app/lib/activitypub/activity/create.rb
app/lib/activitypub/activity/flag.rb
app/lib/ostatus/activity/creation.rb
app/models/account.rb
app/models/custom_emoji.rb
app/models/domain_block.rb
app/models/instance.rb
app/services/activitypub/process_account_service.rb
app/services/block_domain_service.rb
app/services/resolve_account_service.rb
app/services/unblock_domain_service.rb
app/services/update_remote_profile_service.rb
spec/models/account_spec.rb
spec/models/domain_block_spec.rb