Add `tootctl emoji purge` (#10481)

Fix #10441
signup-info-prompt
Eugen Rochko 2019-04-06 04:47:16 +02:00 committed by GitHub
parent e007c7a99b
commit 6689e572f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ module Mastodon
say("Imported #{imported}, skipped #{skipped}, failed to import #{failed}", color(imported, skipped, failed)) say("Imported #{imported}, skipped #{skipped}, failed to import #{failed}", color(imported, skipped, failed))
end end
desc 'purge', 'Remove all custom emoji'
def purge
CustomEmoji.in_batches.destroy_all
say('OK', :green)
end
private private
def color(green, _yellow, red) def color(green, _yellow, red)