diff options
author | FChannel <=> | 2021-01-25 14:14:27 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-25 14:14:27 -0800 |
commit | d94cbd3375df4cd01d068f56da1c6e4b0acd693c (patch) | |
tree | 363cc205bfd350c205f26cb23c8a1c05df6df897 /CacheDatabase.go | |
parent | aa76455a3dfd4504697e1b3fdb33e0aeb01db4d7 (diff) |
removed duplicated To fields
Diffstat (limited to 'CacheDatabase.go')
-rw-r--r-- | CacheDatabase.go | 13 |
1 files changed, 1 insertions, 12 deletions
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 } |