mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-15 02:46:03 -05:00
Fix error when processing remote actors with null public keys (#40194)
This commit is contained in:
@@ -298,6 +298,8 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
next unless value['owner'] == @account.uri
|
||||
|
||||
key = value['publicKeyPem']
|
||||
next if key.nil?
|
||||
|
||||
{ type: :rsa, public_key: key, uri: key_id }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user