• Matt Jankowski's avatar
    Domain block service cleanup (#2490) · 8857cabc
    Matt Jankowski authored
    * Add coverage for domain block service with silence
    * Get rid of warning about find_each and order
    * Move domain_block to attr_reader
    * Move optional clear_media into silence_accounts method
    * Use blocked_domain method to reduce passed vars
    * Extract blocked_domain_accounts method to find accounts on the domain
    * Extract media_from_blocked_domain method to find relevant attachments
    * Separate destruction of account images and account attachments