commit 1affef4
default
·
2024-01-24 08:34:18 +0000 UTC
parent 928eeec
Moved the mutual and bot emojis after the link, where they belong.
1 files changed,
+11,
-11
M
html.c
M
html.c
+11,
-11
1@@ -151,6 +151,17 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
2 xs_html_attr("class", "p-author h-card snac-author"),
3 xs_html_raw(name))); /* name is already html-escaped */
4
5+ if (!xs_is_null(url)) {
6+ xs *md5 = xs_md5_hex(url, strlen(url));
7+
8+ xs_html_add(actor_icon,
9+ xs_html_text(" "),
10+ xs_html_tag("a",
11+ xs_html_attr("href", (char *)url),
12+ xs_html_attr("title", md5),
13+ xs_html_text("»")));
14+ }
15+
16 if (strcmp(xs_dict_get(actor, "type"), "Service") == 0) {
17 xs_html_add(actor_icon,
18 xs_html_text(" "),
19@@ -167,17 +178,6 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
20 xs_html_raw("🤝")));
21 }
22
23- if (!xs_is_null(url)) {
24- xs *md5 = xs_md5_hex(url, strlen(url));
25-
26- xs_html_add(actor_icon,
27- xs_html_text(" "),
28- xs_html_tag("a",
29- xs_html_attr("href", (char *)url),
30- xs_html_attr("title", md5),
31- xs_html_text("»")));
32- }
33-
34 if (priv) {
35 xs_html_add(actor_icon,
36 xs_html_text(" "),