commit 5aa9043668d70b26b99185dc7e1f3e1ff09826a5
parent 60fc87d845c45b605f3c6a81990d2e99a61fd8ae
Author: default <nobody@localhost>
Date: Wed, 31 May 2023 06:41:06 +0200
Don't even call html_entry() for children with "name".
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html.c b/html.c
@@ -1098,7 +1098,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
older_open = 0;
}
- if (chd != NULL) {
+ if (chd != NULL && xs_is_null(xs_dict_get(chd, "name"))) {
ss = html_entry(snac, ss, chd, local, level + 1, cmd5, hide_children);
n_children++;
}