diff options
author | default <nobody@localhost> | 2023-04-23 15:37:09 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-23 15:37:09 +0200 |
commit | 997b17d854db1709686df85fe8dedae0a20ca5fa (patch) | |
tree | 0f8399c1789f47d1138b1a072400b2491911e47a /mastoapi.c | |
parent | 177bf03e100216a604eda82400c03d006978d2bc (diff) |
Moved JSON output validation to httpd.c.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -900,14 +900,6 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, *ctype = "application/json"; status = 200; - { - xs *j = xs_json_loads(*body); - if (j == NULL) { - srv_log(xs_fmt("mastoapi timeline: bad JSON")); - srv_archive_error("mastoapi_timeline", "bad JSON", req, *body); - } - } - srv_debug(2, xs_fmt("mastoapi timeline: returned %d entries", xs_list_len(out))); } else { |