about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-29 16:23:13 +0200
committerGitHub <noreply@github.com>2019-09-29 16:23:13 +0200
commit368a87755b4b12c37deb415e10e03c709012f698 (patch)
treef76c97df7f3ea63122af24f6181dd5d9eb6f1c56 /app/controllers
parentbd9685f7980838ecc675af20cf52ef1e686d98d6 (diff)
Fix account migration not affecting followers on origin server (#11980)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings/migrations_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/settings/migrations_controller.rb b/app/controllers/settings/migrations_controller.rb
index 00bde1d61..68304bb51 100644
--- a/app/controllers/settings/migrations_controller.rb
+++ b/app/controllers/settings/migrations_controller.rb
@@ -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