mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 10:00:50 +00:00
Restore parents scope
This commit is contained in:
parent
d9d7f7df82
commit
57d647ac2d
|
|
@ -23,7 +23,7 @@ module Mastodon::CLI
|
||||||
def list
|
def list
|
||||||
fail_with_message 'Cannot specify both --only-blocked and --only-with-approval' if options[:only_blocked] && options[:only_with_approval]
|
fail_with_message 'Cannot specify both --only-blocked and --only-with-approval' if options[:only_blocked] && options[:only_with_approval]
|
||||||
|
|
||||||
base_query = EmailDomainBlock.where(parent_id: nil)
|
base_query = EmailDomainBlock.parents
|
||||||
|
|
||||||
if options[:only_blocked]
|
if options[:only_blocked]
|
||||||
base_query = base_query.where(allow_with_approval: false)
|
base_query = base_query.where(allow_with_approval: false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user