From bb61b04e66da46b5786e446c6c452a1defa71522 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 12 Apr 2023 20:25:41 +0200 Subject: [PATCH] Dummy /accounts/relationships. --- mastoapi.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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, "/");