diff --git a/src/list.c b/src/list.c index f612e1d..dfb9cb5 100644 --- a/src/list.c +++ b/src/list.c @@ -31,6 +31,7 @@ int mstdnt_load_list_from_json(struct mstdnt_list* list, cJSON* js) if (_mstdnt_key_val_iter(v, strings, _mstdnt_arr_len(strings), NULL, 0) == 1) return 1; + return 0; } @@ -79,7 +80,8 @@ int mastodont_get_lists(mastodont_t* data, return 1; } - // TODO -cleanup: + res = mstdnt_load_lists_from_result(lists, storage, &results, size); + + mastodont_fetch_results_cleanup(&results); return res; } diff --git a/src/status.c b/src/status.c index 6603396..fbd05a1 100644 --- a/src/status.c +++ b/src/status.c @@ -57,6 +57,7 @@ int mstdnt_load_status_from_json(struct mstdnt_status* status, cJSON* js) } } } + return 0; } int mstdnt_load_status_from_result(struct mstdnt_status* status, @@ -194,6 +195,7 @@ int mastodont_create_status(mastodont_t* data, u_visibility.s = args->visibility; struct _mstdnt_query_param params[] = { + { _MSTDNT_QUERY_STRING, "in_reply_to_id", u_in_reply_to_id }, { _MSTDNT_QUERY_STRING, "content_type", u_content_type }, { _MSTDNT_QUERY_STRING, "status", u_status }, { _MSTDNT_QUERY_STRING, "visibility", u_visibility },