From 926560cd020bb28cb4e78786cf015f97f1ec5d03 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 15 Apr 2022 22:44:40 -0700 Subject: [PATCH] Add extended content type for ActivityPub objects. Closes #1827 --- router/middleware/activityPub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/middleware/activityPub.go b/router/middleware/activityPub.go index 6d3c91750..3c3805a0f 100644 --- a/router/middleware/activityPub.go +++ b/router/middleware/activityPub.go @@ -21,7 +21,7 @@ func RequireActivityPubOrRedirect(handler http.HandlerFunc) http.HandlerFunc { handler(w, r) } - acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json"} + acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json", `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`} acceptString := r.Header.Get("Accept") accept := strings.Split(acceptString, ",")