summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-02 10:58:49 +0200
committerdefault <nobody@localhost>2023-06-02 10:58:49 +0200
commit84152d67f5c5158b1e75ce67c13e4af696e3f305 (patch)
treebbf853ce17a95661d0fce8f234db450e6b1fcd14 /html.c
parentb0337f55b5c0afe32231f1efffe7aa184319b7e3 (diff)
Fixed bug in notify() (the poll id was not set).
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 3e50648..78e164d 100644
--- a/html.c
+++ b/html.c
@@ -1402,7 +1402,7 @@ xs_str *html_notifications(snac *snac)
const char *utype = xs_dict_get(noti, "utype");
const char *id = xs_dict_get(noti, "objid");
- if (!valid_status(object_get(id, &obj)))
+ if (xs_is_null(id) || !valid_status(object_get(id, &obj)))
continue;
if (is_hidden(snac, id))