From: Jeong Arm Date: Tue, 21 Jan 2020 17:56:18 +0000 (+0900) Subject: Close registration before self-destruct (#12877) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=26988be57d198a659f07bf36b7d49c9d5f78c684;p=mastodon.git Close registration before self-destruct (#12877) --- diff --git a/lib/cli.rb b/lib/cli.rb index fbdf49fc3..19cc5d6b5 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -96,6 +96,8 @@ module Mastodon prompt.warn('Do NOT interrupt this process...') + Setting.registrations_mode = 'none' + Account.local.without_suspended.find_each do |account| payload = ActiveModelSerializers::SerializableResource.new( account,