diff options
author | FChannel <> | 2022-04-30 11:00:55 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 1892327cee2c3fa1d3bea729bd08eb63c2189a96 (patch) | |
tree | 7b846f7d9caf46fba6c9d15ff81b9d89dcca9476 /outboxGet.go | |
parent | 5b52d269faa2ce2014d0feba603a2122361cf4eb (diff) |
restructured code base to prevent circular dependicies
Diffstat (limited to 'outboxGet.go')
-rw-r--r-- | outboxGet.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/outboxGet.go b/outboxGet.go index 6e7bd47..27e9cc4 100644 --- a/outboxGet.go +++ b/outboxGet.go @@ -7,19 +7,19 @@ import ( "github.com/FChannel0/FChannel-Server/activitypub" "github.com/FChannel0/FChannel-Server/config" - "github.com/FChannel0/FChannel-Server/db" + "github.com/FChannel0/FChannel-Server/webfinger" _ "github.com/lib/pq" ) func GetActorOutbox(w http.ResponseWriter, r *http.Request) error { - actor, err := db.GetActorFromPath(r.URL.Path, "/") + actor, err := webfinger.GetActorFromPath(r.URL.Path, "/") if err != nil { return err } var collection activitypub.Collection - c, err := db.GetActorObjectCollectionFromDB(actor.Id) + c, err := activitypub.GetActorObjectCollectionFromDB(actor.Id) if err != nil { return err } @@ -28,12 +28,12 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request) error { collection.AtContext.Context = "https://www.w3.org/ns/activitystreams" collection.Actor = &actor - collection.TotalItems, err = db.GetObjectPostsTotalDB(actor) + collection.TotalItems, err = activitypub.GetObjectPostsTotalDB(actor) if err != nil { return err } - collection.TotalImgs, err = db.GetObjectImgsTotalDB(actor) + collection.TotalImgs, err = activitypub.GetObjectImgsTotalDB(actor) if err != nil { return err } |