diff options
author | FChannel <=> | 2021-01-25 13:07:28 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-25 13:07:28 -0800 |
commit | e5a02f492854d7c3f8d4fd44ccb512b0da40d952 (patch) | |
tree | 9b999f94a592e289669fa6330fa9ec3c6543ebd0 /CacheDatabase.go | |
parent | 7823265b9a7bea93befdd9b04c4332be5c5b0404 (diff) |
no really.... its fixed this time i promis
Diffstat (limited to 'CacheDatabase.go')
-rw-r--r-- | CacheDatabase.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/CacheDatabase.go b/CacheDatabase.go index 8577c0f..5b8a6d0 100644 --- a/CacheDatabase.go +++ b/CacheDatabase.go @@ -384,15 +384,15 @@ 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 - } - } + // 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 } |