Close registration before self-destruct (#12877)

master
Jeong Arm 5 years ago committed by Eugen Rochko
parent b0acead946
commit 26988be57d
  1. 2
      lib/cli.rb

@ -96,6 +96,8 @@ module Mastodon
prompt.warn('Do NOT interrupt this process...') prompt.warn('Do NOT interrupt this process...')
Setting.registrations_mode = 'none'
Account.local.without_suspended.find_each do |account| Account.local.without_suspended.find_each do |account|
payload = ActiveModelSerializers::SerializableResource.new( payload = ActiveModelSerializers::SerializableResource.new(
account, account,

Loading…
Cancel
Save