summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-12 20:25:41 +0200
committerdefault <nobody@localhost>2023-04-12 20:25:41 +0200
commitbb61b04e66da46b5786e446c6c452a1defa71522 (patch)
treeceaaa43d5fe9cea1c99bfdfa3adeb11fb614f8d1 /mastoapi.c
parente146c2afa8f29ce18313f6792f845f3613576699 (diff)
Dummy /accounts/relationships.
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, "/");