sforkowany z mirror/friendica
Log unexpected value
rodzic
7ac76639c5
commit
840d9823d4
|
@ -1116,6 +1116,10 @@ class ParseUrl
|
|||
}
|
||||
|
||||
$content = JsonLD::fetchElement($jsonld, 'image', 'url', '@type', 'ImageObject');
|
||||
if (!empty($content) && !is_string($content)) {
|
||||
Logger::notice('Unexpected return value for the author image', ['content' => $content]);
|
||||
}
|
||||
|
||||
if (!empty($content) && is_string($content)) {
|
||||
$jsonldinfo['author_img'] = trim($content);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue