diff options
| author | 2023-04-13 15:32:13 +0200 | |
|---|---|---|
| committer | 2023-04-13 15:32:13 +0200 | |
| commit | 2d5d63554c32c7166933ce0d7d842c05471c83fe (patch) | |
| tree | ebdd3c6d85b410865790b40c5e9a3c8041558762 /mastoapi.c | |
| parent | Version 2.27 RELEASED. (diff) | |
| download | snac2-2d5d63554c32c7166933ce0d7d842c05471c83fe.tar.gz snac2-2d5d63554c32c7166933ce0d7d842c05471c83fe.tar.xz snac2-2d5d63554c32c7166933ce0d7d842c05471c83fe.zip | |
Started working on a notification list.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -855,6 +855,11 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 855 | else | 855 | else |
| 856 | if (strcmp(cmd, "/notifications") == 0) { | 856 | if (strcmp(cmd, "/notifications") == 0) { |
| 857 | /* TBD */ | 857 | /* TBD */ |
| 858 | { | ||
| 859 | xs *j = xs_json_dumps_pp(args, 4); | ||
| 860 | printf("notification args:\n%s\n", j); | ||
| 861 | } | ||
| 862 | |||
| 858 | *body = xs_dup("[]"); | 863 | *body = xs_dup("[]"); |
| 859 | *ctype = "application/json"; | 864 | *ctype = "application/json"; |
| 860 | status = 200; | 865 | status = 200; |