Skip to content

Commit 04aadf2

Browse files
committed
Always resolveUrl before returning implied photo
1 parent 4d03611 commit 04aadf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mf2/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,12 +1157,12 @@ public function parseImpliedPhoto(\DOMElement $e) {
11571157

11581158
// img.h-x[src]
11591159
if ($e->tagName == 'img') {
1160-
return $e->getAttribute('src');
1160+
return $this->resolveUrl($e->getAttribute('src'));
11611161
}
11621162

11631163
// object.h-x[data]
11641164
if ($e->tagName == 'object' && $e->hasAttribute('data')) {
1165-
return $e->getAttribute('data');
1165+
return $this->resolveUrl($e->getAttribute('data'));
11661166
}
11671167

11681168
$xpaths = array(

0 commit comments

Comments
 (0)