Skip to content

Commit

Permalink
only published sites
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Sep 24, 2021
1 parent 6f2541d commit 9e13e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 9e13e81

Please sign in to comment.