summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2025-01-25 23:13:59 +0100
committerGravatar default2025-01-25 23:13:59 +0100
commit5d267968cb0d2670f8a4bd7587e505f812dfa3bc (patch)
tree704470094886f2ca982b8465e132edbae25af467 /html.c
parentFixed repeated entries in the instance public timeline. (diff)
downloadpenes-snac2-5d267968cb0d2670f8a4bd7587e505f812dfa3bc.tar.gz
penes-snac2-5d267968cb0d2670f8a4bd7587e505f812dfa3bc.tar.xz
penes-snac2-5d267968cb0d2670f8a4bd7587e505f812dfa3bc.zip
Fixed crash in the notification area after deleting a post.
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 31d8d97..3b63cfc 100644
--- a/html.c
+++ b/html.c
@@ -3074,7 +3074,9 @@ xs_str *html_notifications(snac *user, int skip, int show)
3074 3074
3075 /* store in the admiration labels dict */ 3075 /* store in the admiration labels dict */
3076 xs *pl = xs_data_new(&html_label, sizeof(html_label)); 3076 xs *pl = xs_data_new(&html_label, sizeof(html_label));
3077 admiration_labels = xs_dict_set(admiration_labels, msg_id, pl); 3077
3078 if (xs_is_string(msg_id))
3079 admiration_labels = xs_dict_set(admiration_labels, msg_id, pl);
3078 3080
3079 entry = xs_html_tag("div", 3081 entry = xs_html_tag("div",
3080 xs_html_attr("class", "snac-post-with-desc"), 3082 xs_html_attr("class", "snac-post-with-desc"),