about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-12-07 14:13:10 +0100
committerGitHub <noreply@github.com>2022-12-07 14:13:10 +0100
commitc52263f6f89f35414e59f95c877141a80e9bb79d (patch)
treed7463af6ac96aa0dabcd499dfa99938db01c9591 /lib
parentc8a1faa86b2eb2e0350b384fe66431bec663fdae (diff)
Fix deprecation warning in `tootctl accounts rotate` (#22120)
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/accounts_cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb
index c8a8448ed..77cbef84e 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