diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-02 02:57:23 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-02 02:57:23 +0000 |
commit | 2148666991eb98fa6935f4f36fc29cf1e704f834 (patch) | |
tree | df9ef2db74685543d7458650b69ce89db14ae51a /urls/urls.go | |
parent | 5efad50005484e4bcd56fd68a46040e3d89b0efe (diff) | |
download | communique-2148666991eb98fa6935f4f36fc29cf1e704f834.tar.gz |
followers and following endpoints
Diffstat (limited to 'urls/urls.go')
-rw-r--r-- | urls/urls.go | 12 |
1 files changed, 12 insertions, 0 deletions
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) } |