summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-30 19:43:55 +0200
committerGravatar grunfink2025-05-30 19:43:55 +0200
commit706816b4321337d56ff3121186567363b882d01d (patch)
treefd2791488024273af9795fe6399f507a78994439 /data.c
parentAdded a new server knob disable_notify_webhook. (diff)
downloadpenes-snac2-706816b4321337d56ff3121186567363b882d01d.tar.gz
penes-snac2-706816b4321337d56ff3121186567363b882d01d.tar.xz
penes-snac2-706816b4321337d56ff3121186567363b882d01d.zip
Added uid, basedir and baseurl to the notify webhook message.
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.c b/data.c
index 74bc112..28f7cd9 100644
--- a/data.c
+++ b/data.c
@@ -3534,6 +3534,10 @@ void enqueue_notify_webhook(snac *user, const xs_dict *noti, int retries)
3534 3534
3535 /* add more data */ 3535 /* add more data */
3536 msg = xs_dict_set(msg, "target", user->actor); 3536 msg = xs_dict_set(msg, "target", user->actor);
3537 msg = xs_dict_set(msg, "uid", user->uid);
3538 msg = xs_dict_set(msg, "basedir", srv_basedir);
3539 msg = xs_dict_set(msg, "baseurl", srv_baseurl);
3540
3537 xs *actor_obj = NULL; 3541 xs *actor_obj = NULL;
3538 3542
3539 if (valid_status(object_get(xs_dict_get(noti, "actor"), &actor_obj)) && actor_obj) 3543 if (valid_status(object_get(xs_dict_get(noti, "actor"), &actor_obj)) && actor_obj)