diff options
author | Darius Kazemi <darius.kazemi@gmail.com> | 2019-08-03 10:11:09 -0700 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 01:25:39 -0600 |
commit | e6e69f091e3414b29271040926cc1d2e7c5f0e41 (patch) | |
tree | cbd46c9e52eb68bd4eb341fdc55bd265a7890212 /app/javascript/flavours/glitch/features | |
parent | 855de12844c9367e0754acd8f32bcc42996f419c (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 'app/javascript/flavours/glitch/features')
0 files changed, 0 insertions, 0 deletions