mastoapi: don't generate stupid, non-existent header fields.

This commit is contained in:
default 2024-07-27 06:33:44 +02:00
parent e113f95738
commit ae02f6542b

View File

@ -600,7 +600,7 @@ xs_dict *mastoapi_account(const xs_dict *actor)
header = xs_dup(xs_dict_get(hd, "url"));
if (xs_is_null(header))
header = xs_fmt("%s/header.png", srv_baseurl);
header = xs_str_new(NULL);
acct = xs_dict_append(acct, "header", header);
acct = xs_dict_append(acct, "header_static", header);
@ -1208,7 +1208,7 @@ void credentials_get(char **body, char **ctype, int *status, snac snac)
if (!xs_is_null(hd))
header = xs_dup(hd);
else
header = xs_fmt("%s/header.png", srv_baseurl);
header = xs_str_new(NULL);
acct = xs_dict_append(acct, "header", header);
acct = xs_dict_append(acct, "header_static", header);