0
0
Fork 0

Fix account migration not affecting followers on origin server (#11980)

This commit is contained in:
Eugen Rochko 2019-09-29 16:23:13 +02:00 committed by GitHub
parent bd9685f798
commit 368a87755b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 8 deletions

View file

@ -18,9 +18,7 @@ class Settings::MigrationsController < Settings::BaseController
@migration = current_account.migrations.build(resource_params)
if @migration.save_with_challenge(current_user)
current_account.update!(moved_to_account: @migration.target_account)
ActivityPub::UpdateDistributionWorker.perform_async(current_account.id)
ActivityPub::MoveDistributionWorker.perform_async(@migration.id)
MoveService.new.call(@migration)
redirect_to settings_migration_path, notice: I18n.t('migrations.moved_msg', acct: current_account.moved_to_account.acct)
else
render :show