diff options
| author | 2025-05-30 19:43:55 +0200 | |
|---|---|---|
| committer | 2025-05-30 19:43:55 +0200 | |
| commit | 706816b4321337d56ff3121186567363b882d01d (patch) | |
| tree | fd2791488024273af9795fe6399f507a78994439 /data.c | |
| parent | Added a new server knob disable_notify_webhook. (diff) | |
| download | penes-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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) |