Added the 'header' field to verify_credentials.

Megalodon accepted, but now crashes on input.
This commit is contained in:
default 2023-04-15 09:52:48 +02:00
parent ec51d59e24
commit 84077aa9eb

View file

@ -675,6 +675,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
acct = xs_dict_append(acct, "created_at", xs_dict_get(snac1.config, "published")); acct = xs_dict_append(acct, "created_at", xs_dict_get(snac1.config, "published"));
acct = xs_dict_append(acct, "note", xs_dict_get(snac1.config, "bio")); acct = xs_dict_append(acct, "note", xs_dict_get(snac1.config, "bio"));
acct = xs_dict_append(acct, "url", snac1.actor); acct = xs_dict_append(acct, "url", snac1.actor);
acct = xs_dict_append(acct, "header", "");
xs *avatar = NULL; xs *avatar = NULL;
char *av = xs_dict_get(snac1.config, "avatar"); char *av = xs_dict_get(snac1.config, "avatar");