commit ef27a36
grunfink
·
2026-03-18 14:47:17 +0000 UTC
parent a3cf0db
Don't use a NULL md5 in quoted post anchors.
1 files changed,
+3,
-1
M
html.c
M
html.c
+3,
-1
1@@ -2802,10 +2802,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2 xs *quoted_post = NULL;
3
4 if (valid_status(object_get(quoted_id, "ed_post))) {
5+ xs *md5 = xs_md5_hex(quoted_id, strlen(quoted_id));
6+
7 xs_html_add(snac_content,
8 xs_html_tag("blockquote",
9 xs_html_attr("class", "snac-quoted-post"),
10- html_entry(user, quoted_post, 1, level + 1, NULL, 1)));
11+ html_entry(user, quoted_post, 1, level + 1, md5, 1)));
12 }
13 else
14 if (user)