about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2020-01-22 02:56:18 +0900
committerEugen Rochko <eugen@zeonfederated.com>2020-01-21 18:56:18 +0100
commit26988be57d198a659f07bf36b7d49c9d5f78c684 (patch)
tree23ff28083110e20c522cf86a24abc352d62f519b /lib
parentb0acead946f7abac648ca3d706f9a160d71c740a (diff)
Close registration before self-destruct (#12877)
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.rb2
1 files changed, 2 insertions, 0 deletions
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,