diff options
author | FChannel <> | 2022-05-06 22:45:27 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 39012c6b17073f6933a5ead8beed64df555f7348 (patch) | |
tree | 7784d092fe196a9051c81cf6833997607ad2d268 /routes/follow.go | |
parent | af542e339e5a611d2a1b5876450bee841b577640 (diff) |
converting functions to activitypub object functions
Diffstat (limited to 'routes/follow.go')
-rw-r--r-- | routes/follow.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/routes/follow.go b/routes/follow.go index 3dbf9cf..f61e405 100644 --- a/routes/follow.go +++ b/routes/follow.go @@ -7,10 +7,11 @@ import ( ) func Following(ctx *fiber.Ctx) error { - return activitypub.GetActorFollowing(ctx, config.Domain) + actor, _ := activitypub.GetActorFromDB(config.Domain) + return actor.GetFollowingResp(ctx) } func Followers(ctx *fiber.Ctx) error { - // STUB - return activitypub.GetActorFollowers(ctx, config.Domain) + actor, _ := activitypub.GetActorFromDB(config.Domain) + return actor.GetFollowersResp(ctx) } |