aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-04-23 09:14:23 +0200
committergrunfink <grunfink@comam.es>2026-04-23 09:14:23 +0200
commit4db4958ba965605e088eb177fcc0c8b7d9cafadf (patch)
tree69dbbb1a4e0e69292b66d4b10d820eb15dad7475
parent9bf65054498df1216b0e1db42b154ac282470026 (diff)
Don't recalculate md5 in » links.
-rw-r--r--html.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/html.c b/html.c
index c17583e..c7bbb87 100644
--- a/html.c
+++ b/html.c
@@ -321,13 +321,11 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
name_link);
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_attr("title", xs_is_string(md5) ? md5 : ""),
xs_html_text("»")));
}