Merge pull request #14431 from annando/fix-poll

Fix polling of feeds
This commit is contained in:
Tobias Diekershoff 2024-09-14 16:05:01 +02:00 committed by GitHub
commit 32f8b652ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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;
}