summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-05-24 11:49:16 +0200
committerGravatar default2023-05-24 11:49:16 +0200
commit0d8a040d9086cd7a9e13a7b070e425df9201f7e5 (patch)
treec9832687eaaa9a0dfd954a9bbc835557e14dc579 /html.c
parentNew function msg_question() (unused). (diff)
downloadsnac2-0d8a040d9086cd7a9e13a7b070e425df9201f7e5.tar.gz
snac2-0d8a040d9086cd7a9e13a7b070e425df9201f7e5.tar.xz
snac2-0d8a040d9086cd7a9e13a7b070e425df9201f7e5.zip
Added some experimental 'Question' posting code.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 8d4adfb..518ac1f 100644
--- a/html.c
+++ b/html.c
@@ -852,7 +852,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
852#endif 852#endif
853 853
854 { 854 {
855 xs *c = sanitize(xs_dict_get(msg, "content")); 855 const char *content = xs_dict_get(msg, "content");
856
857 xs *c = sanitize(xs_is_null(content) ? "" : content);
856 char *p, *v; 858 char *p, *v;
857 859
858 /* do some tweaks to the content */ 860 /* do some tweaks to the content */