From ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3 Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 18 Mar 2026 15:47:17 +0100 Subject: Don't use a NULL md5 in quoted post anchors. --- html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 9f5ca1d..fd7e594 100644 --- a/html.c +++ b/html.c @@ -2802,10 +2802,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, xs *quoted_post = NULL; if (valid_status(object_get(quoted_id, "ed_post))) { + xs *md5 = xs_md5_hex(quoted_id, strlen(quoted_id)); + xs_html_add(snac_content, xs_html_tag("blockquote", xs_html_attr("class", "snac-quoted-post"), - html_entry(user, quoted_post, 1, level + 1, NULL, 1))); + html_entry(user, quoted_post, 1, level + 1, md5, 1))); } else if (user) -- cgit v1.2.3