diff options
| author | 2023-04-12 20:25:41 +0200 | |
|---|---|---|
| committer | 2023-04-12 20:25:41 +0200 | |
| commit | bb61b04e66da46b5786e446c6c452a1defa71522 (patch) | |
| tree | ceaaa43d5fe9cea1c99bfdfa3adeb11fb614f8d1 | |
| parent | Also return (some) information for non-local users. (diff) | |
| download | snac2-bb61b04e66da46b5786e446c6c452a1defa71522.tar.gz snac2-bb61b04e66da46b5786e446c6c452a1defa71522.tar.xz snac2-bb61b04e66da46b5786e446c6c452a1defa71522.zip | |
Dummy /accounts/relationships.
| -rw-r--r-- | mastoapi.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -677,6 +677,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 677 | } | 677 | } |
| 678 | } | 678 | } |
| 679 | else | 679 | else |
| 680 | if (strcmp(cmd, "/accounts/relationships") == 0) { | ||
| 681 | /* find if an account is followed, blocked, etc. */ | ||
| 682 | /* dummy by now */ | ||
| 683 | *body = xs_dup("[]"); | ||
| 684 | *ctype = "application/json"; | ||
| 685 | status = 200; | ||
| 686 | } | ||
| 687 | else | ||
| 680 | if (xs_startswith(cmd, "/accounts/")) { | 688 | if (xs_startswith(cmd, "/accounts/")) { |
| 681 | /* account-related information */ | 689 | /* account-related information */ |
| 682 | xs *l = xs_split(cmd, "/"); | 690 | xs *l = xs_split(cmd, "/"); |