aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 2 insertions, 0 deletions
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";