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 and hiyuki2578 committed Oct 2, 2019
1 parent d086463 commit 7b8f005
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 7b8f005

Please sign in to comment.