From 2148666991eb98fa6935f4f36fc29cf1e704f834 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 1 Jan 2023 21:57:23 -0500 Subject: followers and following endpoints --- urls/urls.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'urls/urls.go') diff --git a/urls/urls.go b/urls/urls.go index 6a2025b..65aa042 100644 --- a/urls/urls.go +++ b/urls/urls.go @@ -25,6 +25,18 @@ func UrlOutbox(name, domain string) (*url.URL, error) { return linkTo("outbox", domain, "actors", name, "outbox") } +func UrlProfile(name, domain string) (*url.URL, error) { + return linkTo("outbox", domain, "actors", name) +} + +func UrlFollowers(name, domain string) (*url.URL, error) { + return linkTo("outbox", domain, "actors", name, "followers") +} + +func UrlFollowing(name, domain string) (*url.URL, error) { + return linkTo("outbox", domain, "actors", name, "following") +} + func UrlActivity(name, domain, id string) (*url.URL, error) { return linkTo("activity", domain, "actors", name, "activity", id) } -- cgit v1.2.3