diff options
| author | 2023-05-31 06:41:06 +0200 | |
|---|---|---|
| committer | 2023-05-31 06:41:06 +0200 | |
| commit | 5aa9043668d70b26b99185dc7e1f3e1ff09826a5 (patch) | |
| tree | 6bb52ef1334dc5266f059fb60a1058c7432cc3cb /html.c | |
| parent | Don't hide replies to polls (that are not votes). (diff) | |
| download | snac2-5aa9043668d70b26b99185dc7e1f3e1ff09826a5.tar.gz snac2-5aa9043668d70b26b99185dc7e1f3e1ff09826a5.tar.xz snac2-5aa9043668d70b26b99185dc7e1f3e1ff09826a5.zip | |
Don't even call html_entry() for children with "name".
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1098,7 +1098,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1098 | older_open = 0; | 1098 | older_open = 0; |
| 1099 | } | 1099 | } |
| 1100 | 1100 | ||
| 1101 | if (chd != NULL) { | 1101 | if (chd != NULL && xs_is_null(xs_dict_get(chd, "name"))) { |
| 1102 | ss = html_entry(snac, ss, chd, local, level + 1, cmd5, hide_children); | 1102 | ss = html_entry(snac, ss, chd, local, level + 1, cmd5, hide_children); |
| 1103 | n_children++; | 1103 | n_children++; |
| 1104 | } | 1104 | } |