diff options
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | data.c | 2 |
2 files changed, 2 insertions, 2 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) | |||
| 2769 | if (strcmp(type, "notify_webhook") == 0) { | 2769 | if (strcmp(type, "notify_webhook") == 0) { |
| 2770 | const char *webhook = xs_dict_get(user->config, "notify_webhook"); | 2770 | const char *webhook = xs_dict_get(user->config, "notify_webhook"); |
| 2771 | 2771 | ||
| 2772 | if (xs_is_string(webhook) && *webhook) { | 2772 | if (xs_is_string(webhook) && xs_match(webhook, "https://*|http://*")) { /** **/ |
| 2773 | const xs_dict *msg = xs_dict_get(q_item, "message"); | 2773 | const xs_dict *msg = xs_dict_get(q_item, "message"); |
| 2774 | int retries = xs_number_get(xs_dict_get(q_item, "retries")); | 2774 | int retries = xs_number_get(xs_dict_get(q_item, "retries")); |
| 2775 | 2775 | ||
| @@ -3529,7 +3529,7 @@ void enqueue_notify_webhook(snac *user, const xs_dict *noti, int retries) | |||
| 3529 | { | 3529 | { |
| 3530 | const char *webhook = xs_dict_get(user->config, "notify_webhook"); | 3530 | const char *webhook = xs_dict_get(user->config, "notify_webhook"); |
| 3531 | 3531 | ||
| 3532 | if (xs_is_string(webhook) && *webhook) { | 3532 | if (xs_is_string(webhook) && xs_match(webhook, "https://*|http://*")) { /** **/ |
| 3533 | xs *msg = xs_dup(noti); | 3533 | xs *msg = xs_dup(noti); |
| 3534 | 3534 | ||
| 3535 | /* add more data */ | 3535 | /* add more data */ |