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(); }