From ae02f6542bf063e7c93c7a1963a99afa681a206d Mon Sep 17 00:00:00 2001 From: default Date: Sat, 27 Jul 2024 06:33:44 +0200 Subject: [PATCH] mastoapi: don't generate stupid, non-existent header fields. --- mastoapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastoapi.c b/mastoapi.c index cb4c6a1..7bd68a6 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -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);