aboutsummaryrefslogtreecommitdiff
path: root/urls
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-02 02:57:23 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-02 02:57:23 +0000
commit2148666991eb98fa6935f4f36fc29cf1e704f834 (patch)
treedf9ef2db74685543d7458650b69ce89db14ae51a /urls
parent5efad50005484e4bcd56fd68a46040e3d89b0efe (diff)
downloadcommunique-2148666991eb98fa6935f4f36fc29cf1e704f834.tar.gz
followers and following endpoints
Diffstat (limited to '')
-rw-r--r--urls/urls.go12
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)
}