]> git.mxchange.org Git - friendica.git/commitdiff
Fix polling of feeds
authorMichael <heluecht@pirati.ca>
Thu, 12 Sep 2024 12:41:23 +0000 (12:41 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 12 Sep 2024 12:41:23 +0000 (12:41 +0000)
src/Worker/OnePoll.php

index f720d25692732c4f7c2220c6c322af27cc3283a7..c7b704bf636491fd71d400a7a0f02428762b7a83 100644 (file)
@@ -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;
                }