From c4d489f018b11927dba07699da0b27ee376b6949 Mon Sep 17 00:00:00 2001 From: teromene Date: Thu, 19 Jul 2018 17:07:54 +0200 Subject: [PATCH] Add URI to ElloBridge elements. --- bridges/ElloBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/ElloBridge.php b/bridges/ElloBridge.php index c0e266e..885ede8 100644 --- a/bridges/ElloBridge.php +++ b/bridges/ElloBridge.php @@ -45,9 +45,10 @@ class ElloBridge extends BridgeAbstract { $item = array(); $item['author'] = $this->getUsername($post, $postData); $item['timestamp'] = strtotime($post->created_at); - $item['title'] = $this->findText($post->summary); + $item['title'] = strip_tags($this->findText($post->summary)); $item['content'] = $this->getPostContent($post->body); $item['enclosures'] = $this->getEnclosures($post, $postData); + $item['uri'] = self::URI . $item['author'] . '/post/' . $post->token; $content = $post->body; $this->items[] = $item;