Skip to content

Commit

Permalink
Add tootctl emoji purge (mastodon#10481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Apr 6, 2019
1 parent 6195e42 commit 9ea47a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/mastodon/emoji_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ def import(path)
say("Imported #{imported}, skipped #{skipped}, failed to import #{failed}", color(imported, skipped, failed))
end

desc 'purge', 'Remove all custom emoji'
def purge
CustomEmoji.in_batches.destroy_all
say('OK', :green)
end

private

def color(green, _yellow, red)
Expand Down

0 comments on commit 9ea47a1

Please sign in to comment.