mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Merge pull request #13977 from annando/dont-retry
Don't retry when fetching invalid content
This commit is contained in:
commit
2077e00eae
1 changed files with 3 additions and 3 deletions
|
@ -1611,15 +1611,15 @@ class Processor
|
|||
|
||||
if (empty($object) || !is_array($object)) {
|
||||
Logger::notice('Invalid JSON data', ['url' => $url, 'content-type' => $curlResult->getContentType()]);
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!self::isValidObject($object, $url)) {
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!HTTPSignature::isValidContentType($curlResult->getContentType(), $url)) {
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
$ldobject = JsonLD::compact($object);
|
||||
|
|
Loading…
Reference in a new issue