Skip to content
Snippets Groups Projects
Commit 26988be5 authored by Jeong Arm's avatar Jeong Arm Committed by Eugen Rochko
Browse files

Close registration before self-destruct (#12877)

parent b0acead9
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment