Remove custom emojis on "tootctl domains purge" (#10721)
* Remove custom emojis on domains purge * Change message "Removing" to "Removed"
This commit is contained in:
parent
ce8635605c
commit
03801fcaa5
|
@ -28,10 +28,15 @@ module Mastodon
|
||||||
say('.', :green, false)
|
say('.', :green, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
DomainBlock.where(domain: domain).destroy_all
|
DomainBlock.where(domain: domain).destroy_all unless options[:dry_run]
|
||||||
|
|
||||||
say
|
say
|
||||||
say("Removed #{removed} accounts#{dry_run}", :green)
|
say("Removed #{removed} accounts#{dry_run}", :green)
|
||||||
|
|
||||||
|
custom_emojis = CustomEmoji.where(domain: domain)
|
||||||
|
custom_emojis_count = custom_emojis.count
|
||||||
|
custom_emojis.destroy_all unless options[:dry_run]
|
||||||
|
say("Removed #{custom_emojis_count} custom emojis", :green)
|
||||||
end
|
end
|
||||||
|
|
||||||
option :concurrency, type: :numeric, default: 50, aliases: [:c]
|
option :concurrency, type: :numeric, default: 50, aliases: [:c]
|
||||||
|
|
Loading…
Reference in New Issue