Skip to content
Snippets Groups Projects
  1. Aug 12, 2019
  2. Aug 11, 2019
  3. Aug 08, 2019
  4. Aug 07, 2019
  5. Aug 06, 2019
  6. Aug 05, 2019
  7. Aug 04, 2019
  8. Aug 03, 2019
    • Darius Kazemi's avatar
      Add option to exclude suspended domains/subdomains from tootctl domains crawl (#11454) · f96f45ef
      Darius Kazemi authored
      * 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
      f96f45ef
Loading