summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 3b9db28..9c4cf3f 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -540,6 +540,16 @@ xs_dict *mastoapi_account(const xs_dict *actor)
avatar = xs_fmt("%s/susie.png", srv_baseurl);
acct = xs_dict_append(acct, "avatar", avatar);
+ acct = xs_dict_append(acct, "avatar_static", avatar);
+
+ xs *header = NULL;
+ xs_dict *hd = xs_dict_get(actor, "image");
+
+ if (xs_type(hd) == XSTYPE_DICT)
+ header = xs_dup(xs_dict_get(hd, "url"));
+
+ acct = xs_dict_append(acct, "header", header);
+ acct = xs_dict_append(acct, "header_static", header);
/* emojis */
xs_list *p;