Account fix

FossilOrigin-Name: 1e8bd3e522ede06e1b42b3840a39045f6bc80ed66163d34d87612a6b6b1d4dd5
This commit is contained in:
me@ow.nekobit.net 2022-04-21 02:56:19 +00:00
parent b107b2f310
commit 71204d5007

View file

@ -119,7 +119,7 @@ static void fetch_account_page(struct session* ssn,
int lookup_type = config_experimental_lookup ? MSTDNT_LOOKUP_ACCT : MSTDNT_LOOKUP_ID;
if (mastodont_get_account(api, lookup_type, id,
&acct, &storage, NULL) ||
&acct, &storage) ||
mastodont_get_relationships(api, &(acct.id), 1, &relations_storage, &relationships, &relationships_len))
{
account_page = construct_error(storage.error, E_ERROR, 1, NULL);