mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Moved the mutual and bot emojis after the link, where they belong.
This commit is contained in:
parent
928eeecba2
commit
1affef47b4
1 changed files with 11 additions and 11 deletions
22
html.c
22
html.c
|
@ -151,6 +151,17 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
|
|||
xs_html_attr("class", "p-author h-card snac-author"),
|
||||
xs_html_raw(name))); /* name is already html-escaped */
|
||||
|
||||
if (!xs_is_null(url)) {
|
||||
xs *md5 = xs_md5_hex(url, strlen(url));
|
||||
|
||||
xs_html_add(actor_icon,
|
||||
xs_html_text(" "),
|
||||
xs_html_tag("a",
|
||||
xs_html_attr("href", (char *)url),
|
||||
xs_html_attr("title", md5),
|
||||
xs_html_text("»")));
|
||||
}
|
||||
|
||||
if (strcmp(xs_dict_get(actor, "type"), "Service") == 0) {
|
||||
xs_html_add(actor_icon,
|
||||
xs_html_text(" "),
|
||||
|
@ -167,17 +178,6 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
|
|||
xs_html_raw("🤝")));
|
||||
}
|
||||
|
||||
if (!xs_is_null(url)) {
|
||||
xs *md5 = xs_md5_hex(url, strlen(url));
|
||||
|
||||
xs_html_add(actor_icon,
|
||||
xs_html_text(" "),
|
||||
xs_html_tag("a",
|
||||
xs_html_attr("href", (char *)url),
|
||||
xs_html_attr("title", md5),
|
||||
xs_html_text("»")));
|
||||
}
|
||||
|
||||
if (priv) {
|
||||
xs_html_add(actor_icon,
|
||||
xs_html_text(" "),
|
||||
|
|
Loading…
Reference in a new issue