Remove extraneous @context fields on AP outbox

pull/299/head
Matt Baer 5 years ago
parent e51e58386e
commit 5e4ed5d9bc
  1. 1
      activitypub.go

@ -160,6 +160,7 @@ func handleFetchCollectionOutbox(app *App, w http.ResponseWriter, r *http.Reques
pp.Collection = res pp.Collection = res
o := pp.ActivityObject(app) o := pp.ActivityObject(app)
a := activitystreams.NewCreateActivity(o) a := activitystreams.NewCreateActivity(o)
a.Context = nil
ocp.OrderedItems = append(ocp.OrderedItems, *a) ocp.OrderedItems = append(ocp.OrderedItems, *a)
} }

Loading…
Cancel
Save