diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -2517,7 +2517,7 @@ xs_str *notify_check_time(snac *snac, int reset) | |||
| 2517 | 2517 | ||
| 2518 | 2518 | ||
| 2519 | void notify_add(snac *snac, const char *type, const char *utype, | 2519 | void notify_add(snac *snac, const char *type, const char *utype, |
| 2520 | const char *actor, const char *objid) | 2520 | const char *actor, const char *objid, const xs_dict *msg) |
| 2521 | /* adds a new notification */ | 2521 | /* adds a new notification */ |
| 2522 | { | 2522 | { |
| 2523 | xs *ntid = tid(0); | 2523 | xs *ntid = tid(0); |
| @@ -2537,6 +2537,7 @@ void notify_add(snac *snac, const char *type, const char *utype, | |||
| 2537 | noti = xs_dict_append(noti, "utype", utype); | 2537 | noti = xs_dict_append(noti, "utype", utype); |
| 2538 | noti = xs_dict_append(noti, "actor", actor); | 2538 | noti = xs_dict_append(noti, "actor", actor); |
| 2539 | noti = xs_dict_append(noti, "date", date); | 2539 | noti = xs_dict_append(noti, "date", date); |
| 2540 | noti = xs_dict_append(noti, "msg", msg); | ||
| 2540 | 2541 | ||
| 2541 | if (!xs_is_null(objid)) | 2542 | if (!xs_is_null(objid)) |
| 2542 | noti = xs_dict_append(noti, "objid", objid); | 2543 | noti = xs_dict_append(noti, "objid", objid); |