diff options
| author | 2025-05-22 04:35:52 +0300 | |
|---|---|---|
| committer | 2025-05-22 04:35:52 +0300 | |
| commit | ec37139f5aac4f54d09f768c54195fb528fd3088 (patch) | |
| tree | cc8ca97dbcf2aa9bcff1519bc440848e953f07ff /mastoapi.c | |
| parent | add missed replacement to the `content_match` function (diff) | |
| download | penes-snac2-ec37139f5aac4f54d09f768c54195fb528fd3088.tar.gz penes-snac2-ec37139f5aac4f54d09f768c54195fb528fd3088.tar.xz penes-snac2-ec37139f5aac4f54d09f768c54195fb528fd3088.zip | |
cleanup ending spaces
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -381,7 +381,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, | |||
| 381 | } | 381 | } |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | /* no code? | 384 | /* no code? |
| 385 | I'm not sure of the impacts of this right now, but Subway Tooter does not | 385 | I'm not sure of the impacts of this right now, but Subway Tooter does not |
| 386 | provide a code so one must be generated */ | 386 | provide a code so one must be generated */ |
| 387 | if (xs_is_null(code)){ | 387 | if (xs_is_null(code)){ |
| @@ -1780,7 +1780,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1780 | } | 1780 | } |
| 1781 | else | 1781 | else |
| 1782 | if (strcmp(opt, "statuses") == 0) { | 1782 | if (strcmp(opt, "statuses") == 0) { |
| 1783 | /* we don't serve statuses of others; return the empty list */ | 1783 | /* we don't serve statuses of others; return the empty list */ |
| 1784 | out = xs_list_new(); | 1784 | out = xs_list_new(); |
| 1785 | } | 1785 | } |
| 1786 | else | 1786 | else |
| @@ -1999,7 +1999,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1999 | } | 1999 | } |
| 2000 | else | 2000 | else |
| 2001 | if (strcmp(cmd, "/v2/filters") == 0) { /** **/ | 2001 | if (strcmp(cmd, "/v2/filters") == 0) { /** **/ |
| 2002 | /* snac will never have filters | 2002 | /* snac will never have filters |
| 2003 | * but still, without a v2 endpoint a short delay is introduced | 2003 | * but still, without a v2 endpoint a short delay is introduced |
| 2004 | * in some apps */ | 2004 | * in some apps */ |
| 2005 | *body = xs_dup("[]"); | 2005 | *body = xs_dup("[]"); |
| @@ -2459,7 +2459,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 2459 | if (logged_in) { | 2459 | if (logged_in) { |
| 2460 | const xs_list *timeline = xs_dict_get(args, "timeline[]"); | 2460 | const xs_list *timeline = xs_dict_get(args, "timeline[]"); |
| 2461 | xs_str *json = NULL; | 2461 | xs_str *json = NULL; |
| 2462 | if (!xs_is_null(timeline)) | 2462 | if (!xs_is_null(timeline)) |
| 2463 | json = xs_json_dumps(markers_get(&snac1, timeline), 4); | 2463 | json = xs_json_dumps(markers_get(&snac1, timeline), 4); |
| 2464 | 2464 | ||
| 2465 | if (!xs_is_null(json)) | 2465 | if (!xs_is_null(json)) |
| @@ -3227,7 +3227,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 3227 | if (!xs_is_null(home)) | 3227 | if (!xs_is_null(home)) |
| 3228 | home_marker = xs_dict_get(home, "last_read_id"); | 3228 | home_marker = xs_dict_get(home, "last_read_id"); |
| 3229 | } | 3229 | } |
| 3230 | 3230 | ||
| 3231 | const xs_str *notify_marker = xs_dict_get(args, "notifications[last_read_id]"); | 3231 | const xs_str *notify_marker = xs_dict_get(args, "notifications[last_read_id]"); |
| 3232 | if (xs_is_null(notify_marker)) { | 3232 | if (xs_is_null(notify_marker)) { |
| 3233 | const xs_dict *notify = xs_dict_get(args, "notifications"); | 3233 | const xs_dict *notify = xs_dict_get(args, "notifications"); |