diff options
author | Darius Kazemi <darius.kazemi@gmail.com> | 2019-08-03 10:11:09 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-03 19:11:09 +0200 |
commit | f96f45ef12341648cb8d79d9b70f8c5636f98f64 (patch) | |
tree | 25b1c0473023fb30f5d026ffd3dcd688d15a9aea /spec/controllers/manifests_controller_spec.rb | |
parent | c8fd82332749cd58f85dd398d32559a02499c945 (diff) |
Add option to exclude suspended domains/subdomains from tootctl domains crawl (#11454)
* Add "--exclude-suspended" to tootctl domains crawl This new option ignores any instances suspended server-wide as well as their associated subdomains. This queries all domain blocks up front, then runs a regexp on each domain. This improves performance over what may be the obvious implementation, which is to ask `DomainBlocks.blocked?(domain)` for each domain -- this hits the DB many times, slowing things down considerably. * cleaning up code style * Compiling regex * Removing ternary operator
Diffstat (limited to 'spec/controllers/manifests_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions