Add extended content type for ActivityPub objects. Closes #1827

This commit is contained in:
Gabe Kangas 2022-04-15 22:44:40 -07:00
parent 79ca6e04f3
commit 926560cd02
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

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