Fix insufficient origin validation

This commit is contained in:
Claire
2024-01-29 12:02:41 +01:00
parent 915cd36ac1
commit 1eda25f186
16 changed files with 36 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ class ActivityPub::LinkedDataSignature
return unless type == 'RsaSignature2017'
creator = ActivityPub::TagManager.instance.uri_to_actor(creator_uri)
creator = ActivityPub::FetchRemoteKeyService.new.call(creator_uri, id: false) if creator&.public_key.blank?
creator = ActivityPub::FetchRemoteKeyService.new.call(creator_uri) if creator&.public_key.blank?
return if creator.nil?