commit 7a18a60

default  ·  2023-12-06 06:41:02 +0000 UTC
parent cd26ab3
Show the md5 of the original post in its link in html_actor_icon().
1 files changed,  +3, -0
M html.c
M html.c
+3, -0
 1@@ -133,10 +133,13 @@ xs_html *html_actor_icon(xs_dict *actor, const char *date,
 2 
 3 
 4     if (!xs_is_null(url)) {
 5+        xs *md5 = xs_md5_hex(url, strlen(url));
 6+
 7         xs_html_add(actor_icon,
 8             xs_html_text(" "),
 9             xs_html_tag("a",
10                 xs_html_attr("href", (char *)url),
11+                xs_html_attr("title", md5),
12                 xs_html_text("ยป")));
13     }
14