diff options
Diffstat (limited to 'mastoapi.c')
| -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"; |