snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 84077aa9eb3c18ed6ce812b002079ed7ee331894
parent ec51d59e2457aa28398b908015819ece0083fbbe
Author: default <nobody@localhost>
Date:   Sat, 15 Apr 2023 09:52:48 +0200

Added the 'header' field to verify_credentials.

Megalodon accepted, but now crashes on input.

Diffstat:
Mmastoapi.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/mastoapi.c b/mastoapi.c @@ -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, "note", xs_dict_get(snac1.config, "bio")); acct = xs_dict_append(acct, "url", snac1.actor); + acct = xs_dict_append(acct, "header", ""); xs *avatar = NULL; char *av = xs_dict_get(snac1.config, "avatar");