From 26988be57d198a659f07bf36b7d49c9d5f78c684 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Wed, 22 Jan 2020 02:56:18 +0900 Subject: [PATCH] Close registration before self-destruct (#12877) --- lib/cli.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cli.rb b/lib/cli.rb index fbdf49fc34a..19cc5d6b519 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,