Browse Source

Add URI to ElloBridge elements.

teromene 5 years ago
parent
commit
c4d489f018
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bridges/ElloBridge.php

+ 2 - 1
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;