summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-07-31 06:22:13 +0200
committerdefault <nobody@localhost>2024-07-31 06:22:13 +0200
commit1001744ddb48ed3cb49d1d6d1a607852d6d385de (patch)
tree9d28c3b2abe8bf2264531d1f8526ff8bab35e74b /data.c
parenta09ea11f551969e2239cbf65293205da9cae37fe (diff)
Notify objects include the original message.
Diffstat (limited to 'data.c')
-rw-r--r--data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/data.c b/data.c
index 121407f..1a4551d 100644
--- a/data.c
+++ b/data.c
@@ -2517,7 +2517,7 @@ xs_str *notify_check_time(snac *snac, int reset)
void notify_add(snac *snac, const char *type, const char *utype,
- const char *actor, const char *objid)
+ const char *actor, const char *objid, const xs_dict *msg)
/* adds a new notification */
{
xs *ntid = tid(0);
@@ -2537,6 +2537,7 @@ void notify_add(snac *snac, const char *type, const char *utype,
noti = xs_dict_append(noti, "utype", utype);
noti = xs_dict_append(noti, "actor", actor);
noti = xs_dict_append(noti, "date", date);
+ noti = xs_dict_append(noti, "msg", msg);
if (!xs_is_null(objid))
noti = xs_dict_append(noti, "objid", objid);