aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-05-30 19:34:11 +0200
committergrunfink <grunfink@comam.es>2025-05-30 19:34:11 +0200
commitf055c8b694a398868d14fd70df61d02429846dae (patch)
treeed4cddbe23462d75fe05f7d0dcd3f2d5daf8961f /activitypub.c
parente41e5974c7943f1eb02497051ce5e8d5c5b40aed (diff)
Added a new server knob disable_notify_webhook.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index fb0c42c..ab63abe 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2769,7 +2769,7 @@ void process_user_queue_item(snac *user, xs_dict *q_item)
if (strcmp(type, "notify_webhook") == 0) {
const char *webhook = xs_dict_get(user->config, "notify_webhook");
- if (xs_is_string(webhook)) {
+ if (xs_is_string(webhook) && *webhook) {
const xs_dict *msg = xs_dict_get(q_item, "message");
int retries = xs_number_get(xs_dict_get(q_item, "retries"));