aboutsummaryrefslogtreecommitdiff
path: root/routes/follow.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/follow.go')
-rw-r--r--routes/follow.go7
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)
}