add Google+ base URL in front of item entry URI

this fixes the Atom feed entry URL from
https://example.com/rss-bridge/+Perspn/posts/N6fgHam5e2ik to point to
https://plus.google.com/+Perspn/posts/N6fgHam5e2ik. Otherwise the URL
count not be found.
This commit is contained in:
Sven Fischer 2015-06-27 23:58:06 +02:00
parent 7a40584864
commit b18990872e

View file

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