diff options
| author | 2023-04-13 16:59:17 +0200 | |
|---|---|---|
| committer | 2023-04-13 16:59:17 +0200 | |
| commit | bcde97c2d53f9c94c6ced2717945affa4ede554c (patch) | |
| tree | e57442ff4bd0f2bc25ae516241ca5bcdaa0c3878 /mastoapi.c | |
| parent | Started working on a notification list. (diff) | |
| download | snac2-bcde97c2d53f9c94c6ced2717945affa4ede554c.tar.gz snac2-bcde97c2d53f9c94c6ced2717945affa4ede554c.tar.xz snac2-bcde97c2d53f9c94c6ced2717945affa4ede554c.zip | |
New function notify_add().
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 0 insertions, 5 deletions
| @@ -855,11 +855,6 @@ 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 | |||
| 863 | *body = xs_dup("[]"); | 858 | *body = xs_dup("[]"); |
| 864 | *ctype = "application/json"; | 859 | *ctype = "application/json"; |
| 865 | status = 200; | 860 | status = 200; |