Fix security context getting removed on AP collection endpoint

This commit is contained in:
Matt Baer 2025-05-07 17:20:22 -04:00
parent db66a885fb
commit 2b79ab0313

View file

@ -884,7 +884,6 @@ func handleViewCollection(app *App, w http.ResponseWriter, r *http.Request) erro
// Serve ActivityStreams data now, if requested
if IsActivityPubRequest(r) {
ac := c.PersonObject()
ac.Context = []interface{}{activitystreams.Namespace}
setCacheControl(w, apCacheTime)
return impart.RenderActivityJSON(w, ac, http.StatusOK)
}