projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac7663
)
Log unexpected value
author
Michael
<heluecht@pirati.ca>
Wed, 22 Sep 2021 03:25:01 +0000
(
03:25
+0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 22 Sep 2021 03:25:01 +0000
(
03:25
+0000)
src/Util/ParseUrl.php
patch
|
blob
|
history
diff --git
a/src/Util/ParseUrl.php
b/src/Util/ParseUrl.php
index d40a0a4e911850608e74806a295a7e8f86895b02..58916495255e7385a63178920afc53653e591f68 100644
(file)
--- a/
src/Util/ParseUrl.php
+++ b/
src/Util/ParseUrl.php
@@
-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);
}