From 075b4da359ba443f03946beb57b86d5d364b71ee Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 16 Sep 2023 17:01:45 +0300 Subject: [PATCH] fix condition --- src/public/api/push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/api/push.php b/src/public/api/push.php index 413328f..1e2605d 100644 --- a/src/public/api/push.php +++ b/src/public/api/push.php @@ -33,7 +33,7 @@ foreach (json_decode(file_get_contents(__DIR__ . '/../../config/nodes.json')) as $thisUrl = Yggverse\Parser\Url::parse(WEBSITE_URL); $manifestUrl = Yggverse\Parser\Url::parse($node->manifest); - if (empty($manifestUrl->host->name) || + if (empty($thisUrl->host->name) || empty($manifestUrl->host->name) || $manifestUrl->host->name == $thisUrl->host->name) // @TODO some mirrors could be available, improve condition {