mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Dummy /accounts/relationships.
This commit is contained in:
parent
e146c2afa8
commit
bb61b04e66
1 changed files with 8 additions and 0 deletions
|
@ -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, "/");
|
||||
|
|
Loading…
Reference in a new issue