From c52263f6f89f35414e59f95c877141a80e9bb79d Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 7 Dec 2022 14:13:10 +0100 Subject: [PATCH] Fix deprecation warning in `tootctl accounts rotate` (#22120) --- lib/mastodon/accounts_cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb index c8a8448edc9..77cbef84ecb 100644 --- a/lib/mastodon/accounts_cli.rb +++ b/lib/mastodon/accounts_cli.rb @@ -541,7 +541,7 @@ module Mastodon old_key = account.private_key new_key = OpenSSL::PKey::RSA.new(2048) account.update(private_key: new_key.to_pem, public_key: new_key.public_key.to_pem) - ActivityPub::UpdateDistributionWorker.perform_in(delay, account.id, sign_with: old_key) + ActivityPub::UpdateDistributionWorker.perform_in(delay, account.id, { 'sign_with' => old_key }) end end end