diff options
| author | default <nobody@localhost> | 2025-01-25 23:13:59 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-25 23:13:59 +0100 |
| commit | 5d267968cb0d2670f8a4bd7587e505f812dfa3bc (patch) | |
| tree | 704470094886f2ca982b8465e132edbae25af467 | |
| parent | b2f5f95c7b8c8793f82d394009b0908888de5bdc (diff) | |
Fixed crash in the notification area after deleting a post.
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3074,7 +3074,9 @@ xs_str *html_notifications(snac *user, int skip, int show) /* store in the admiration labels dict */ xs *pl = xs_data_new(&html_label, sizeof(html_label)); - admiration_labels = xs_dict_set(admiration_labels, msg_id, pl); + + if (xs_is_string(msg_id)) + admiration_labels = xs_dict_set(admiration_labels, msg_id, pl); entry = xs_html_tag("div", xs_html_attr("class", "snac-post-with-desc"), |