commit ec37139
postscriptum
·
2025-05-22 01:35:52 +0000 UTC
parent e567736
cleanup ending spaces
1 files changed,
+5,
-5
+5,
-5
1@@ -381,7 +381,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
2 }
3 }
4
5- /* no code?
6+ /* no code?
7 I'm not sure of the impacts of this right now, but Subway Tooter does not
8 provide a code so one must be generated */
9 if (xs_is_null(code)){
10@@ -1780,7 +1780,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
11 }
12 else
13 if (strcmp(opt, "statuses") == 0) {
14- /* we don't serve statuses of others; return the empty list */
15+ /* we don't serve statuses of others; return the empty list */
16 out = xs_list_new();
17 }
18 else
19@@ -1999,7 +1999,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
20 }
21 else
22 if (strcmp(cmd, "/v2/filters") == 0) { /** **/
23- /* snac will never have filters
24+ /* snac will never have filters
25 * but still, without a v2 endpoint a short delay is introduced
26 * in some apps */
27 *body = xs_dup("[]");
28@@ -2459,7 +2459,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
29 if (logged_in) {
30 const xs_list *timeline = xs_dict_get(args, "timeline[]");
31 xs_str *json = NULL;
32- if (!xs_is_null(timeline))
33+ if (!xs_is_null(timeline))
34 json = xs_json_dumps(markers_get(&snac1, timeline), 4);
35
36 if (!xs_is_null(json))
37@@ -3227,7 +3227,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
38 if (!xs_is_null(home))
39 home_marker = xs_dict_get(home, "last_read_id");
40 }
41-
42+
43 const xs_str *notify_marker = xs_dict_get(args, "notifications[last_read_id]");
44 if (xs_is_null(notify_marker)) {
45 const xs_dict *notify = xs_dict_get(args, "notifications");