mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
mastoapi: don't generate stupid, non-existent header fields.
This commit is contained in:
parent
e113f95738
commit
ae02f6542b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user