1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Close registration before self-destruct (#12877)

This commit is contained in:
Jeong Arm 2020-01-22 02:56:18 +09:00 committed by Eugen Rochko
parent b0acead946
commit 26988be57d

View file

@ -96,6 +96,8 @@ module Mastodon
prompt.warn('Do NOT interrupt this process...') prompt.warn('Do NOT interrupt this process...')
Setting.registrations_mode = 'none'
Account.local.without_suspended.find_each do |account| Account.local.without_suspended.find_each do |account|
payload = ActiveModelSerializers::SerializableResource.new( payload = ActiveModelSerializers::SerializableResource.new(
account, account,