From 7823265b9a7bea93befdd9b04c4332be5c5b0404 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Mon, 25 Jan 2021 13:02:40 -0800 Subject: feedback loop fix with getting actor collection --- outboxGet.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'outboxGet.go') diff --git a/outboxGet.go b/outboxGet.go index 8c178a2..42fafd0 100644 --- a/outboxGet.go +++ b/outboxGet.go @@ -10,16 +10,15 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) { var collection Collection collection.OrderedItems = GetObjectFromDB(db, actor).OrderedItems - collection.AtContext.Context = "https://www.w3.org/ns/activitystreams" collection.Actor = &actor - collection.Actor.AtContext.Context = "" collection.TotalItems = GetObjectPostsTotalDB(db, actor) collection.TotalImgs = GetObjectImgsTotalDB(db, actor) - enc, _ := json.MarshalIndent(collection, "", "\t") - w.Header().Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") + enc, _ := json.MarshalIndent(collection, "", "\t") + + w.Header().Set("Content-Type", activitystreams) w.Write(enc) } -- cgit v1.2.3