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 --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 76466da..4976fcf 100644 --- a/main.go +++ b/main.go @@ -1250,9 +1250,7 @@ func GetActorCollectionCache(db *sql.DB, actor Actor) Collection { collection.OrderedItems = GetObjectFromCache(db, actor.Id).OrderedItems - collection.AtContext.Context = "https://www.w3.org/ns/activitystreams" collection.Actor = &actor - collection.Actor.AtContext.Context = "" collection.TotalItems = GetObjectPostsTotalCache(db, actor) collection.TotalImgs = GetObjectImgsTotalCache(db, actor) @@ -1265,9 +1263,7 @@ func GetActorCollectionDB(db *sql.DB, actor Actor) 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) @@ -1337,7 +1333,7 @@ func IsValidActor(id string) (Actor, bool) { panic(err) } - if respCollection.AtContext.Context == "https://www.w3.org/ns/activitystreams" && respCollection.Id != "" && respCollection.Inbox != "" && respCollection.Outbox != "" { + if respCollection.Id != "" && respCollection.Inbox != "" && respCollection.Outbox != "" { return respCollection, true; } -- cgit v1.2.3