From 2ca021e2c6599b39e6225fdbd449093517a34418 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sat, 23 Jan 2021 22:37:20 -0800 Subject: caching progress --- client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client.go') diff --git a/client.go b/client.go index d62c26f..e0c5975 100644 --- a/client.go +++ b/client.go @@ -138,7 +138,7 @@ func OutboxGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection Co domainURL := GetDomainURL(*actor) if domainURL == Domain { - followCol := GetObjectsFromFollow(*actor) + followCol := GetObjectsFromFollow(db, *actor) for _, e := range followCol { if e.Type != "Tombstone" { mergeCollection.OrderedItems = append(mergeCollection.OrderedItems, e) @@ -217,9 +217,8 @@ func CatalogGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection C domainURL := GetDomainURL(*actor) if domainURL == Domain { - followCol := GetObjectsFromFollow(*actor) + followCol := GetObjectsFromFollow(db, *actor) for _, e := range followCol { - mergeCollection.OrderedItems = append(mergeCollection.OrderedItems, e) } } -- cgit v1.2.3