From 9fec8fc5ca8b3a45510183b839f15375c2a66695 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 10 Jan 2025 08:47:01 +0100 Subject: Fixed crash. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index 3498b93..5ad55a3 100644 --- a/html.c +++ b/html.c @@ -2227,7 +2227,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, /* show all hashtags that has not been shown previously in the content */ const xs_list *tags = xs_dict_get(msg, "tag"); if (xs_type(tags) == XSTYPE_LIST && xs_list_len(tags)) { - const char *o_content = xs_dict_get(msg, "content"); + const char *o_content = xs_dict_get_def(msg, "content", ""); xs *content = xs_utf8_to_lower(o_content); const xs_dict *tag; -- cgit v1.2.3