summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/data.c b/data.c
index 939ede6..026ae7b 100644
--- a/data.c
+++ b/data.c
@@ -1525,9 +1525,11 @@ void notify_add(snac *snac, const char *type, const char *utype,
1525 noti = xs_dict_append(noti, "type", type); 1525 noti = xs_dict_append(noti, "type", type);
1526 noti = xs_dict_append(noti, "utype", utype); 1526 noti = xs_dict_append(noti, "utype", utype);
1527 noti = xs_dict_append(noti, "actor", actor); 1527 noti = xs_dict_append(noti, "actor", actor);
1528 noti = xs_dict_append(noti, "objid", objid);
1529 noti = xs_dict_append(noti, "date", date); 1528 noti = xs_dict_append(noti, "date", date);
1530 1529
1530 if (!xs_is_null(objid))
1531 noti = xs_dict_append(noti, "objid", objid);
1532
1531 if ((f = fopen(fn, "w")) != NULL) { 1533 if ((f = fopen(fn, "w")) != NULL) {
1532 xs *j = xs_json_dumps_pp(noti, 4); 1534 xs *j = xs_json_dumps_pp(noti, 4);
1533 1535