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 --- CacheDatabase.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'CacheDatabase.go') diff --git a/CacheDatabase.go b/CacheDatabase.go index 9de9c78..8577c0f 100644 --- a/CacheDatabase.go +++ b/CacheDatabase.go @@ -361,7 +361,6 @@ func GetObjectRepliesCache(db *sql.DB, parent ObjectBase) (*CollectionBase, int, err = rows.Scan(&post.Id, &post.Name, &post.Content, &post.Type, &post.Published, &post.AttributedTo, &attachID, &previewID, &actor.Id) - CheckError(err, "error with replies db scan") post.Actor = &actor @@ -384,11 +383,9 @@ func GetObjectRepliesCache(db *sql.DB, parent ObjectBase) (*CollectionBase, int, nColl.OrderedItems = result - /* - remoteCollection := GetObjectRepliesRemote(db, parent) + + remoteCollection, postc, imgc := GetObjectRepliesDB(db, parent) - var postc int - var imgc int for _, e := range remoteCollection.OrderedItems { nColl.OrderedItems = append(nColl.OrderedItems, e) postc = postc + 1 @@ -396,7 +393,6 @@ func GetObjectRepliesCache(db *sql.DB, parent ObjectBase) (*CollectionBase, int, imgc = imgc + 1 } } -*/ return &nColl, 0, 0 } -- cgit v1.2.3