commit 036be9d

default  ·  2023-04-11 18:16:12 +0000 UTC
parent a7f3ba6
Added some comments.
1 files changed,  +8, -2
+8, -2
 1@@ -763,50 +763,56 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2     }
 3     else
 4     if (strcmp(cmd, "/filters") == 0) {
 5-        /* TBD */
 6+        /* snac will never have filters */
 7         *body  = xs_dup("[]");
 8         *ctype = "application/json";
 9         status = 200;
10     }
11     else
12     if (strcmp(cmd, "/favourites") == 0) {
13-        /* TBD */
14+        /* snac will never support a list of favourites */
15         *body  = xs_dup("[]");
16         *ctype = "application/json";
17         status = 200;
18     }
19     else
20     if (strcmp(cmd, "/bookmarks") == 0) {
21+        /* snac does not support bookmarks */
22         *body  = xs_dup("[]");
23         *ctype = "application/json";
24         status = 200;
25     }
26     else
27     if (strcmp(cmd, "/lists") == 0) {
28+        /* snac does not support lists */
29         *body  = xs_dup("[]");
30         *ctype = "application/json";
31         status = 200;
32     }
33     else
34     if (strcmp(cmd, "/scheduled_statuses") == 0) {
35+        /* snac does not scheduled notes */
36         *body  = xs_dup("[]");
37         *ctype = "application/json";
38         status = 200;
39     }
40     else
41     if (strcmp(cmd, "/follow_requests") == 0) {
42+        /* snac does not support optional follow confirmations */
43         *body  = xs_dup("[]");
44         *ctype = "application/json";
45         status = 200;
46     }
47     else
48     if (strcmp(cmd, "/announcements") == 0) {
49+        /* snac has no announcements (yet?) */
50         *body  = xs_dup("[]");
51         *ctype = "application/json";
52         status = 200;
53     }
54     else
55     if (strcmp(cmd, "/custom_emojis") == 0) {
56+        /* are you kidding me? */
57         *body  = xs_dup("[]");
58         *ctype = "application/json";
59         status = 200;