From e96c98595f027ef7e28a538172ffaf6c2981a6f3 Mon Sep 17 00:00:00 2001 From: KMY Date: Fri, 14 Mar 2025 09:02:05 +0900 Subject: [PATCH] Fix test --- app/services/activitypub/fetch_references_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/activitypub/fetch_references_service.rb b/app/services/activitypub/fetch_references_service.rb index 0c71af58fd..8f3fce5f22 100644 --- a/app/services/activitypub/fetch_references_service.rb +++ b/app/services/activitypub/fetch_references_service.rb @@ -39,11 +39,11 @@ class ActivityPub::FetchReferencesService < BaseService # # Therefore, retry with correct signatures if this fails. begin - fetch_resource_without_id_validation(collection_or_uri, nil, true) + fetch_resource_without_id_validation(collection_or_uri, nil) rescue Mastodon::UnexpectedResponseError => e 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