summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index c947096..ac2bb30 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -677,6 +677,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
}
}
else
+ if (strcmp(cmd, "/accounts/relationships") == 0) {
+ /* find if an account is followed, blocked, etc. */
+ /* dummy by now */
+ *body = xs_dup("[]");
+ *ctype = "application/json";
+ status = 200;
+ }
+ else
if (xs_startswith(cmd, "/accounts/")) {
/* account-related information */
xs *l = xs_split(cmd, "/");