snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit ec37139f5aac4f54d09f768c54195fb528fd3088
parent e567736640da21d37848567cd164cb84bbdab507
Author: postscriptum <postscriptum@project>
Date:   Thu, 22 May 2025 04:35:52 +0300

cleanup ending spaces

Diffstat:
Mmastoapi.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mastoapi.c b/mastoapi.c @@ -381,7 +381,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, } } - /* no code? + /* no code? I'm not sure of the impacts of this right now, but Subway Tooter does not provide a code so one must be generated */ if (xs_is_null(code)){ @@ -1780,7 +1780,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, } else if (strcmp(opt, "statuses") == 0) { - /* we don't serve statuses of others; return the empty list */ + /* we don't serve statuses of others; return the empty list */ out = xs_list_new(); } else @@ -1999,7 +1999,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, } else if (strcmp(cmd, "/v2/filters") == 0) { /** **/ - /* snac will never have filters + /* snac will never have filters * but still, without a v2 endpoint a short delay is introduced * in some apps */ *body = xs_dup("[]"); @@ -2459,7 +2459,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, if (logged_in) { const xs_list *timeline = xs_dict_get(args, "timeline[]"); xs_str *json = NULL; - if (!xs_is_null(timeline)) + if (!xs_is_null(timeline)) json = xs_json_dumps(markers_get(&snac1, timeline), 4); if (!xs_is_null(json)) @@ -3227,7 +3227,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, if (!xs_is_null(home)) home_marker = xs_dict_get(home, "last_read_id"); } - + const xs_str *notify_marker = xs_dict_get(args, "notifications[last_read_id]"); if (xs_is_null(notify_marker)) { const xs_dict *notify = xs_dict_get(args, "notifications");