Fix test
This commit is contained in:
parent
6548462ecb
commit
e96c98595f
1 changed files with 2 additions and 2 deletions
|
@ -39,11 +39,11 @@ class ActivityPub::FetchReferencesService < BaseService
|
||||||
#
|
#
|
||||||
# Therefore, retry with correct signatures if this fails.
|
# Therefore, retry with correct signatures if this fails.
|
||||||
begin
|
begin
|
||||||
fetch_resource_without_id_validation(collection_or_uri, nil, true)
|
fetch_resource_without_id_validation(collection_or_uri, nil)
|
||||||
rescue Mastodon::UnexpectedResponseError => e
|
rescue Mastodon::UnexpectedResponseError => e
|
||||||
raise unless e.response && e.response.code == 401 && Addressable::URI.parse(collection_or_uri).query.present?
|
raise unless e.response && e.response.code == 401 && Addressable::URI.parse(collection_or_uri).query.present?
|
||||||
|
|
||||||
fetch_resource_without_id_validation(collection_or_uri, nil, true, request_options: { with_query_string: true })
|
fetch_resource_without_id_validation(collection_or_uri, nil, request_options: { with_query_string: true })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue