aboutsummaryrefslogtreecommitdiff
path: root/outboxGet.go
diff options
context:
space:
mode:
Diffstat (limited to 'outboxGet.go')
-rw-r--r--outboxGet.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/outboxGet.go b/outboxGet.go
index 8eec74e..8c178a2 100644
--- a/outboxGet.go
+++ b/outboxGet.go
@@ -23,15 +23,13 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) {
w.Write(enc)
}
-func GetObjectsFromFollow(actor Actor) []ObjectBase {
+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
- var actor Actor
- actor = GetActor(e.Id)
- followOutbox = GetActorCollection(actor.Outbox)
+ followOutbox = GetObjectFromCache(db, e.Id)
for _, e := range followOutbox.OrderedItems {
followObj = append(followObj, e)
}