Merge branch 'master' into glitch-soc/merge-upstream

Conflicts:
- app/controllers/statuses_controller.rb
  minor conflict because of glitch-soc's theming system
- app/controllers/stream_entries_controller.rb
  minor conflict because of glitch-soc's theming system
This commit is contained in:
Thibaut Girka
2019-05-10 17:09:12 +02:00
40 changed files with 669 additions and 130 deletions

View File

@ -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]

View File

@ -13,7 +13,7 @@ module Mastodon
end
def patch
1
2
end
def pre