[PicukiBridge] Fix image URLs in content (#2282)

URLs in Picuki are already absolute
This commit is contained in:
Timendum 2021-09-28 11:15:41 +02:00 committed by GitHub
parent 1ddce120ae
commit 42e40e2823
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,11 +59,7 @@ class PicukiBridge extends BridgeAbstract
$is_video = (bool) $element->find('.video-icon', 0);
$item['content'] = ($is_video) ? '(video) ' : '';
$item['content'] .= str_replace(
'src="',
'src="' . trim(self::URI, '/'),
$element->find('.photo', 0)->outertext
);
$item['content'] .= $element->find('.photo', 0)->outertext;
$item['enclosures'] = array(
// just add `.jpg` extension to get the correct mime type. All Instagram posts are JPG