diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 52 |
1 files changed, 0 insertions, 52 deletions
@@ -1301,58 +1301,6 @@ func GetActor(id string) Actor { return respActor } -func GetActorCollectionCache(db *sql.DB, actor Actor) Collection { - var collection Collection - - collection.OrderedItems = GetObjectFromCache(db, actor.Id).OrderedItems - - collection.Actor = &actor - - collection.TotalItems = GetObjectPostsTotalCache(db, actor) - collection.TotalImgs = GetObjectImgsTotalCache(db, actor) - - return collection -} - -func GetActorCollectionCacheCatalog(db *sql.DB, actor Actor) Collection { - var collection Collection - - collection.OrderedItems = GetObjectFromCacheCatalog(db, actor.Id).OrderedItems - - collection.Actor = &actor - - collection.TotalItems = GetObjectPostsTotalCache(db, actor) - collection.TotalImgs = GetObjectImgsTotalCache(db, actor) - - return collection -} - -func GetActorCollectionDB(db *sql.DB, actor Actor) Collection { - var collection Collection - - collection.OrderedItems = GetObjectFromDB(db, actor.Id).OrderedItems - - collection.Actor = &actor - - collection.TotalItems = GetObjectPostsTotalDB(db, actor) - collection.TotalImgs = GetObjectImgsTotalDB(db, actor) - - return collection -} - -func GetActorCollectionDBCatalog(db *sql.DB, actor Actor) Collection { - var collection Collection - - collection.OrderedItems = GetObjectFromDBCatalog(db, actor.Id).OrderedItems - - collection.Actor = &actor - - collection.TotalItems = GetObjectPostsTotalDB(db, actor) - collection.TotalImgs = GetObjectImgsTotalDB(db, actor) - - return collection -} - func GetActorCollection(collection string) Collection { var nCollection Collection |