diff --git a/bridges/PicnobBridge.php b/bridges/PicnobBridge.php index 831992c8..6e010e64 100644 --- a/bridges/PicnobBridge.php +++ b/bridges/PicnobBridge.php @@ -54,7 +54,7 @@ class PicnobBridge extends BridgeAbstract $relativeDate = str_replace(' ago', '', $element->find('.time', 0)->plaintext); date_sub($date, date_interval_create_from_date_string($relativeDate)); - $description = trim($element->find('.sum', 0)->plaintext); + $description = defaultLinkTo(trim($element->find('.sum', 0)->innertext), self::URI); $isVideo = (bool) $element->find('.icon_video', 0); $videoNote = $isVideo ? '

(video)

' : ''; @@ -69,6 +69,8 @@ class PicnobBridge extends BridgeAbstract parse_str(parse_url($imageUrl, PHP_URL_QUERY), $imageVars); $imageUrl = $imageVars['u']; + $uid = explode('/', parse_url($url, PHP_URL_PATH))[2]; + $this->items[] = [ 'uri' => $url, 'timestamp' => date_format($date, 'r'), @@ -83,7 +85,8 @@ class PicnobBridge extends BridgeAbstract {$tvNote} {$moreContentNote}

{$description}

-HTML +HTML, + 'uid' => $uid ]; } }