commit 5d26796
default
·
2025-01-25 22:13:59 +0000 UTC
parent b2f5f95
Fixed crash in the notification area after deleting a post.
1 files changed,
+3,
-1
M
html.c
M
html.c
+3,
-1
1@@ -3074,7 +3074,9 @@ xs_str *html_notifications(snac *user, int skip, int show)
2
3 /* store in the admiration labels dict */
4 xs *pl = xs_data_new(&html_label, sizeof(html_label));
5- admiration_labels = xs_dict_set(admiration_labels, msg_id, pl);
6+
7+ if (xs_is_string(msg_id))
8+ admiration_labels = xs_dict_set(admiration_labels, msg_id, pl);
9
10 entry = xs_html_tag("div",
11 xs_html_attr("class", "snac-post-with-desc"),