Correctly insert polls and attachments inside CW.

This commit is contained in:
default 2023-12-19 11:42:06 +01:00
parent 90bab08655
commit dd51da30d8

4
html.c
View file

@ -1581,7 +1581,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
} }
} }
xs_html_add(snac_content_wrap, xs_html_add(snac_content,
poll); poll);
} }
@ -1612,7 +1612,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
xs_html *content_attachments = xs_html_tag("div", xs_html *content_attachments = xs_html_tag("div",
xs_html_attr("class", "snac-content-attachments")); xs_html_attr("class", "snac-content-attachments"));
xs_html_add(snac_content_wrap, xs_html_add(snac_content,
content_attachments); content_attachments);
xs_list *p = attach; xs_list *p = attach;