Finish Lists

FossilOrigin-Name: 5a61f62af7b7059ada855d00f687c5ccc91bcdb67290dbb4589889f4996c6213
This commit is contained in:
me@ow.nekobit.net 2022-02-24 04:01:26 +00:00
parent bd5c0210f1
commit ffe0a504c8
2 changed files with 6 additions and 2 deletions

View file

@ -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;
}

View file

@ -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 },