mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Fixed bug in notify() (the poll id was not set).
This commit is contained in:
parent
b0337f55b5
commit
84152d67f5
2 changed files with 2 additions and 2 deletions
|
@ -602,7 +602,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
|
|||
if (strcmp(type, "Follow") == 0)
|
||||
objid = id;
|
||||
|
||||
notify_add(snac, type, utype, actor, objid);
|
||||
notify_add(snac, type, utype, actor, objid != NULL ? objid : id);
|
||||
}
|
||||
|
||||
|
||||
|
|
2
html.c
2
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))
|
||||
|
|
Loading…
Reference in a new issue