diff options
| author | grunfink <grunfink@comam.es> | 2026-03-18 15:47:17 +0100 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2026-03-18 15:47:17 +0100 |
| commit | ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3 (patch) | |
| tree | 8f409f3d28f5f7a151b55c700a5aee1312c98fca /html.c | |
| parent | a3cf0dbc5f01eea13490308287216c1bdaf97f51 (diff) | |
Don't use a NULL md5 in quoted post anchors.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |