From fa829953a90a310f1d70e5bf1e2be7d27e3fadd2 Mon Sep 17 00:00:00 2001 From: Sebastian Jambor Date: Tue, 8 Aug 2023 19:51:30 +0200 Subject: [PATCH] allow jrd+json in json_ld_controller to support strict webfinger endpoints --- app/controllers/api/v1/json_ld_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/json_ld_controller.rb b/app/controllers/api/v1/json_ld_controller.rb index ae6638c70..18f3b41f8 100644 --- a/app/controllers/api/v1/json_ld_controller.rb +++ b/app/controllers/api/v1/json_ld_controller.rb @@ -19,7 +19,7 @@ class Api::V1::JsonLdController < Api::BaseController conn = Faraday::Connection.new conn.options.timeout = 5 - api_response = conn.get(url, nil, {'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}) + api_response = conn.get(url, nil, {'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/jrd+json'}) max_redirects = 5 while api_response.status == 301 || api_response.status == 302 and max_redirects > 0 do