diff --git a/html.c b/html.c index 5cbc665..6abadaa 100644 --- a/html.c +++ b/html.c @@ -210,6 +210,20 @@ d_char *html_user_header(snac *snac, d_char *s, int local) /* top nav */ s = xs_str_cat(s, ""); + { + xs *s1; + xs *avatar = xs_dup(xs_dict_get(snac->config, "avatar")); + + if (avatar == NULL || *avatar == '\0') { + xs_free(avatar); + avatar = xs_fmt("data:image/png;base64, %s", default_avatar_base64()); + } + + s1 = xs_fmt(" ", avatar); + + s = xs_str_cat(s, s1); + } + { xs *s1;