Use Account.activitypub generated scope (#28157)
This commit is contained in:
1 parent
049d9171eb
commit
14aa7f1e15
2 files changed
+2
-2
No files matched your search
@@ -295,7 +295,7 @@ module Mastodon::CLI
|
||||
skip_threshold = 7.days.ago
|
||||
skip_domains = Concurrent::Set.new
|
||||
|
||||
query = Account.remote.where(protocol: :activitypub)
|
||||
query = Account.remote.activitypub
|
||||
query = query.where(domain: domains) unless domains.empty?
|
||||
|
||||
processed, culled = parallelize_with_progress(query.partitioned) do |account|
|
||||
|
||||
Reference in new issue
Block a user