diff options
author | ThibG <thib@sitedethib.com> | 2019-05-11 12:35:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-11 12:35:25 +0200 |
commit | fe00f7a7e4469d18b43be2159fa9d953d2050f46 (patch) | |
tree | f2af743c222ad8d9dc81299195d01a3fe6b54e02 /lib | |
parent | d4d4e84324701243ce05930f45b2dc876e38c7d0 (diff) | |
parent | 14d855c42985503b525f1a77d00fada3bd15b96f (diff) |
Merge pull request #1043 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/domains_cli.rb | 7 | ||||
-rw-r--r-- | lib/mastodon/version.rb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/mastodon/domains_cli.rb b/lib/mastodon/domains_cli.rb index 303b8a94a..b081581fe 100644 --- a/lib/mastodon/domains_cli.rb +++ b/lib/mastodon/domains_cli.rb @@ -28,10 +28,15 @@ module Mastodon say('.', :green, false) end - DomainBlock.where(domain: domain).destroy_all + DomainBlock.where(domain: domain).destroy_all unless options[:dry_run] say 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 option :concurrency, type: :numeric, default: 50, aliases: [:c] diff --git a/lib/mastodon/version.rb b/lib/mastodon/version.rb index 5ea569b29..b2eec94e6 100644 --- a/lib/mastodon/version.rb +++ b/lib/mastodon/version.rb @@ -13,7 +13,7 @@ module Mastodon end def patch - 1 + 2 end def pre |