mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Avoid writing a NULL header in mastoapi_account().
This commit is contained in:
parent
6f72a195b4
commit
3977a12bef
1 changed files with 3 additions and 0 deletions
|
@ -548,6 +548,9 @@ xs_dict *mastoapi_account(const xs_dict *actor)
|
|||
if (xs_type(hd) == XSTYPE_DICT)
|
||||
header = xs_dup(xs_dict_get(hd, "url"));
|
||||
|
||||
if (xs_is_null(header))
|
||||
header = xs_dup("");
|
||||
|
||||
acct = xs_dict_append(acct, "header", header);
|
||||
acct = xs_dict_append(acct, "header_static", header);
|
||||
|
||||
|
|
Loading…
Reference in a new issue