diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-29 05:03:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 05:03:19 +0200 |
commit | 163ed91af381d86bb6c52546c983effa4c9a18c3 (patch) | |
tree | 7de16b4e51f122c292819b323deb2cca99b7d337 /app/controllers/settings/migrations_controller.rb | |
parent | b0cda7a504655f6ced33802af67cabb6f3e46e19 (diff) |
Add (back) option to set redirect notice on account without moving followers (#11994)
Fix #11913
Diffstat (limited to 'app/controllers/settings/migrations_controller.rb')
-rw-r--r-- | app/controllers/settings/migrations_controller.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/settings/migrations_controller.rb b/app/controllers/settings/migrations_controller.rb index 90092c692..00bde1d61 100644 --- a/app/controllers/settings/migrations_controller.rb +++ b/app/controllers/settings/migrations_controller.rb @@ -27,15 +27,6 @@ class Settings::MigrationsController < Settings::BaseController end end - def cancel - if current_account.moved_to_account_id.present? - current_account.update!(moved_to_account: nil) - ActivityPub::UpdateDistributionWorker.perform_async(current_account.id) - end - - redirect_to settings_migration_path, notice: I18n.t('migrations.cancelled_msg') - end - helper_method :on_cooldown? private |