From: Michael Date: Thu, 12 Sep 2024 12:41:23 +0000 (+0000) Subject: Fix polling of feeds X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=44f4876d58393e67a9fe7cd884cfa1b0ce1017bc;p=friendica.git Fix polling of feeds --- diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index f720d25692..c7b704bf63 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -183,7 +183,7 @@ class OnePoll return false; } - if (strpos($curlResult->getContentType(), 'xml') !== false) { + if (strpos($curlResult->getContentType(), 'xml') === false) { Logger::notice('Unexpected content type.', ['id' => $contact['id'], 'url' => $contact['poll'], 'content-type' => $curlResult->getContentType()]); return false; }