Forráskód Böngészése

Add URI to ElloBridge elements.

teromene 5 éve
szülő
commit
c4d489f018
1 módosított fájl, 2 hozzáadás és 1 törlés
  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;