]> cat aescling's git repositories - mastodon.git/commitdiff
Close registration before self-destruct (#12877)
authorJeong Arm <kjwonmail@gmail.com>
Tue, 21 Jan 2020 17:56:18 +0000 (02:56 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 21 Jan 2020 17:56:18 +0000 (18:56 +0100)
lib/cli.rb

index fbdf49fc34a6766640382a7c10521337cb229fbd..19cc5d6b5191229e3ed79aebd78455860d065b88 100644 (file)
@@ -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,