diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2026-04-13 12:11:45 +0200 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2026-04-13 12:11:45 +0200 |
| commit | ca24e28930c9ac3987e1bbc98d1969ea6d52dd0c (patch) | |
| tree | 6cd0d0bc763eab5ebd59e2e68c60331f9808bd20 | |
| parent | 53318b18494f7b6db2f2fe2137a9f8bbae2a732b (diff) | |
| parent | 8084252f27cbf205c4ae346ea533f4ea348dc661 (diff) | |
Merge pull request 'Send a scope with access token' (#605) from trondd555/snac2:token_scope into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/605
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"; |