aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 13:02:40 -0800
committerFChannel <=>2021-01-25 13:02:40 -0800
commit7823265b9a7bea93befdd9b04c4332be5c5b0404 (patch)
treeb0cd6f742ae8637a8ed9a9323a5b9b6e2f662010 /main.go
parent3b923a6f098cacf35f309e44a4c67a6a576fba4e (diff)
feedback loop fix with getting actor collection
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
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;
}