Просмотр исходного кода

Dummy /accounts/relationships.

default 3 лет назад
Родитель
Сommit
bb61b04e66
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      mastoapi.c

+ 8 - 0
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, "/");