From d94cbd3375df4cd01d068f56da1c6e4b0acd693c Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Mon, 25 Jan 2021 14:14:27 -0800 Subject: removed duplicated To fields --- CacheDatabase.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'CacheDatabase.go') diff --git a/CacheDatabase.go b/CacheDatabase.go index 7b60bd6..e533f4f 100644 --- a/CacheDatabase.go +++ b/CacheDatabase.go @@ -360,7 +360,7 @@ func GetObjectRepliesCache(db *sql.DB, parent ObjectBase) (*CollectionBase, int, var postCnt int var imgCnt int - post.Replies, postCnt, imgCnt = GetObjectRepliesRepliesCache(db, post) + post.Replies, postCnt, imgCnt = GetObjectRepliesRepliesDB(db, post) post.Replies.TotalItems, post.Replies.TotalImgs = GetObjectRepliesCacheCount(db, post) @@ -376,17 +376,6 @@ func GetObjectRepliesCache(db *sql.DB, parent ObjectBase) (*CollectionBase, int, nColl.OrderedItems = result - - // remoteCollection, postc, imgc := GetObjectRepliesDB(db, parent) - - // for _, e := range remoteCollection.OrderedItems { - // nColl.OrderedItems = append(nColl.OrderedItems, e) - // postc = postc + 1 - // if len(e.Attachment) > 0 { - // imgc = imgc + 1 - // } - // } - return &nColl, 0, 0 } -- cgit v1.2.3