FossilOrigin-Name: bac6b87eaf37094f16991de5add3050d5d30350ecca481559dbf49f91bc6bfc0
This commit is contained in:
me@ow.nekobit.net 2022-02-11 04:23:14 +00:00
parent 2e88537957
commit f432068434
3 changed files with 9 additions and 8 deletions

View file

@ -0,0 +1 @@
nekobit@toomuchram.2162:1644542728

View file

@ -101,7 +101,7 @@ int mstdnt_load_statuses_from_result(struct mstdnt_status* status[],
size_t* size);
int mstdnt_load_status_from_json(struct mstdnt_status* status, cJSON* js);
int mstdnt_account_statuses(mastodont_t* data,
int mastodont_account_statuses(mastodont_t* data,
char* id,
struct mstdnt_account_statuses_args* args,
struct mstdnt_storage* storage,

View file

@ -88,12 +88,12 @@ int mstdnt_load_statuses_from_result(struct mstdnt_status* statuses[],
}
}
int mstdnt_account_statuses(mastodont_t* data,
char* id,
struct mstdnt_account_statuses_args* args,
struct mstdnt_storage* storage,
struct mstdnt_status* statuses[],
size_t* size)
int mastodont_account_statuses(mastodont_t* data,
char* id,
struct mstdnt_account_statuses_args* args,
struct mstdnt_storage* storage,
struct mstdnt_status* statuses[],
size_t* size)
{
int res;
char url[MSTDNT_URLSIZE];
@ -119,7 +119,7 @@ int mstdnt_account_statuses(mastodont_t* data,
}
storage->needs_cleanup = 0;
if (mastodont_fetch_curl(data, "api/v1/timelines/public", &results) != CURLE_OK)
if (mastodont_fetch_curl(data, url, &results) != CURLE_OK)
return 1;
res = mstdnt_load_statuses_from_result(statuses, storage, &results, size);