diff options
author | FChannel <=> | 2021-02-19 01:00:53 -0800 |
---|---|---|
committer | FChannel <=> | 2021-02-19 01:00:53 -0800 |
commit | 28e256f18f96d9afdcb903b3bc3daf93747c2195 (patch) | |
tree | 519a163e8bddc10690d774231d97017ce02a5003 /outboxGet.go | |
parent | 5cb76e8bf5b9c07d6c7980a403dc4faeea37c3b7 (diff) |
cleaned up db functions
Diffstat (limited to 'outboxGet.go')
-rw-r--r-- | outboxGet.go | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/outboxGet.go b/outboxGet.go index 8ee6587..49b7bd5 100644 --- a/outboxGet.go +++ b/outboxGet.go @@ -22,42 +22,6 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) { w.Write(enc) } -func GetObjectsFromFollow(db *sql.DB, actor Actor) []ObjectBase { - var followingCol Collection - var followObj []ObjectBase - followingCol = GetActorCollection(actor.Following) - for _, e := range followingCol.Items { - var followOutbox Collection - if !IsActorLocal(db, e.Id) { - followOutbox = GetObjectFromCache(db, e.Id) - } else { - followOutbox = GetObjectFromDB(db, e.Id) - } - for _, e := range followOutbox.OrderedItems { - followObj = append(followObj, e) - } - } - return followObj -} - -func GetObjectsFromFollowCatalog(db *sql.DB, actor Actor) []ObjectBase { - var followingCol Collection - var followObj []ObjectBase - followingCol = GetActorCollection(actor.Following) - for _, e := range followingCol.Items { - var followOutbox Collection - if !IsActorLocal(db, e.Id) { - followOutbox = GetObjectFromCacheCatalog(db, e.Id) - } else { - followOutbox = GetObjectFromDBCatalog(db, e.Id) - } - for _, e := range followOutbox.OrderedItems { - followObj = append(followObj, e) - } - } - return followObj -} - func GetCollectionFromPath(db *sql.DB, path string) Collection { var nColl Collection |