Merge pull request #134 from Strubbl/fix-googleplus-item-uri

add Google+ base URL in front of item entry URI
This commit is contained in:
Mitsu 2015-06-28 02:30:14 +02:00
commit d9b2f267c5

View file

@ -56,7 +56,7 @@ class GooglePlusPostBridge extends BridgeAbstract
// $item->title = $item->fullname = $post->find('header.lea', 0)->plaintext;
$item->avatar = $post->find('div.ys img', 0)->src;
// var_dump((($post->find('a.o-U-s', 0)->getAllAttributes())));
$item->uri = $post->find('a.o-U-s', 0)->href;
$item->uri = self::GOOGLE_PLUS_BASE_URL . $post->find('a.o-U-s', 0)->href;
$item->timestamp = strtotime($post->find('a.o-U-s', 0)->plaintext);
$this->items[] = $item;