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, ",")