From 9e13e812be214b44ccbd8c814002d7b129224ab6 Mon Sep 17 00:00:00 2001 From: edalzell Date: Fri, 24 Sep 2021 09:22:43 -0700 Subject: [PATCH] only published sites --- src/Http/Controllers/WebhookController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index baa5cce..ef62462 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -45,7 +45,7 @@ private function handleAlert($notificationClass, $payload) return response()->noContent(); } - if (! $site = Entry::query()->where('collection', 'sites')->where('uptime_tag', $tag)->first()) { + if (! $site = Entry::query()->where('collection', 'sites')->where('published', true)->where('uptime_tag', $tag)->first()) { return response()->noContent(); }