diff --git a/html.c b/html.c index 89df82a..5530c34 100644 --- a/html.c +++ b/html.c @@ -180,7 +180,7 @@ d_char *html_msg_icon(snac *snac, d_char *s, char *msg) { xs *s1 = xs_fmt("%s", - actor, name); + actor_id, name); s = xs_str_cat(s, s1); } @@ -207,7 +207,7 @@ d_char *html_msg_icon(snac *snac, d_char *s, char *msg) } -d_char *html_user_header(snac *snac, d_char *s) +d_char *html_user_header(snac *snac, d_char *s, int local) /* creates the HTML header */ { char *p, *v; @@ -243,6 +243,40 @@ d_char *html_user_header(snac *snac, d_char *s) s = xs_str_cat(s, "\n
\n"); + /* top nav */ + s = xs_str_cat(s, "", snac->actor, L("admin")); + else + s1 = xs_fmt("%s", snac->actor, L("public")); + + s = xs_str_cat(s, s1); + } + + /* user info */ + { + s = xs_str_cat(s, "%s
\n", + xs_dict_get(snac->config, "name")); + s = xs_str_cat(s, s1); + + xs *s2 = xs_fmt("@%s@%s
\n", + xs_dict_get(snac->config, "uid"), xs_dict_get(srv_config, "host")); + s = xs_str_cat(s, s2); + + xs *bio = NULL; + not_really_markdown(xs_dict_get(snac->config, "bio"), &bio); + xs *s3 = xs_fmt("