aboutsummaryrefslogtreecommitdiff
path: root/CacheDatabase.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 /CacheDatabase.go
parent3b923a6f098cacf35f309e44a4c67a6a576fba4e (diff)
feedback loop fix with getting actor collection
Diffstat (limited to 'CacheDatabase.go')
-rw-r--r--CacheDatabase.go8
1 files changed, 2 insertions, 6 deletions
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
}