Fix Accept headers when fetching AP objects to match spec (#30354)

This commit is contained in:
Oneric
2025-11-05 14:32:29 +01:00
committed by GitHub
parent 3aeae8cafd
commit c0c6f5ea32
5 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
class FetchResourceService < BaseService
include JsonLdHelper
ACCEPT_HEADER = 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams", text/html;q=0.1'
ACCEPT_HEADER = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/activity+json, text/html;q=0.1'
ACTIVITY_STREAM_LINK_TYPES = ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].freeze
attr_reader :response_code