diff options
| author | grunfink <grunfink@comam.es> | 2025-05-30 19:59:40 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-05-30 19:59:40 +0200 |
| commit | c8848f6e9f8e9fd9d17290b1ef301d3bf7beccb4 (patch) | |
| tree | c60522d8933a3e9cece47f571d1a78e578180625 /activitypub.c | |
| parent | 6a233d5ba051f8018e819c0dcf5217aba66558a2 (diff) | |
More webhook checks.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index ab63abe..100db67 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) && *webhook) { + if (xs_is_string(webhook) && xs_match(webhook, "https://*|http://*")) { /** **/ const xs_dict *msg = xs_dict_get(q_item, "message"); int retries = xs_number_get(xs_dict_get(q_item, "retries")); |