commit 9fec8fc

default  ·  2025-01-10 07:47:01 +0000 UTC
parent ef7c257
Fixed crash.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -2227,7 +2227,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2     /* show all hashtags that has not been shown previously in the content */
3     const xs_list *tags = xs_dict_get(msg, "tag");
4     if (xs_type(tags) == XSTYPE_LIST && xs_list_len(tags)) {
5-        const char *o_content = xs_dict_get(msg, "content");
6+        const char *o_content = xs_dict_get_def(msg, "content", "");
7         xs *content = xs_utf8_to_lower(o_content);
8         const xs_dict *tag;
9