Fix trying to fetch key from empty URI when verifying HTTP signature (#16100)
This commit is contained in:
parent
422df9d670
commit
f627d2eb93
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ class ActivityPub::FetchRemoteKeyService < BaseService
|
|||
|
||||
# Returns account that owns the key
|
||||
def call(uri, id: true, prefetched_body: nil)
|
||||
return if uri.blank?
|
||||
|
||||
if prefetched_body.nil?
|
||||
if id
|
||||
@json = fetch_resource_without_id_validation(uri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue