From 8084252f27cbf205c4ae346ea533f4ea348dc661 Mon Sep 17 00:00:00 2001 From: trondd555 Date: Sun, 12 Apr 2026 17:19:58 -0400 Subject: Send a scope with the token Mastodon API includes sope with a token. Send an empty value if we don't have a scope. --- mastoapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mastoapi.c b/mastoapi.c index f199d32..9f79b97 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -412,6 +412,8 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, if (!xs_is_null(scope)) rsp = xs_dict_append(rsp, "scope", scope); + else + rsp = xs_dict_append(rsp, "scope", ""); *body = xs_json_dumps(rsp, 4); *ctype = "application/json"; -- cgit