summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-24 09:34:18 +0100
committerdefault <nobody@localhost>2024-01-24 09:34:18 +0100
commit1affef47b4c3a175ec6cb4744253b3dab6285398 (patch)
treec7785b23b4effd7669c49f04ee25d4984c51881f
parent928eeecba249456c94a44b157bdfb9f7686ce5ca (diff)
Moved the mutual and bot emojis after the link, where they belong.
-rw-r--r--html.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/html.c b/html.c
index 5140a11..0e47d35 100644
--- a/html.c
+++ b/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("&#129309;")));
}
- 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(" "),