commit bb61b04

default  ·  2023-04-12 18:25:41 +0000 UTC
parent e146c2a
Dummy /accounts/relationships.
1 files changed,  +8, -0
+8, -0
 1@@ -677,6 +677,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2         }
 3     }
 4     else
 5+    if (strcmp(cmd, "/accounts/relationships") == 0) {
 6+        /* find if an account is followed, blocked, etc. */
 7+        /* dummy by now */
 8+        *body  = xs_dup("[]");
 9+        *ctype = "application/json";
10+        status = 200;
11+    }
12+    else
13     if (xs_startswith(cmd, "/accounts/")) {
14         /* account-related information */
15         xs *l = xs_split(cmd, "/");