1
0
Fork 0
forked from blallo/rss-bridge

[TwitterBridge] Fix double slashes in URI

This fixes double slashes in the feed URI (https://twitter.com//...
instead of https://twitter.com/...)

Reported via #538
This commit is contained in:
logmanoriginal 2017-06-19 00:19:52 +02:00
parent d81b61ccfa
commit ae59b20c0c

View file

@ -117,7 +117,7 @@ class TwitterBridge extends BridgeAbstract {
// get TweetID // get TweetID
$item['id'] = $tweet->getAttribute('data-tweet-id'); $item['id'] = $tweet->getAttribute('data-tweet-id');
// get tweet link // get tweet link
$item['uri'] = self::URI . $tweet->find('a.js-permalink', 0)->getAttribute('href'); $item['uri'] = self::URI . substr($tweet->find('a.js-permalink', 0)->getAttribute('href'), 1);
// extract tweet timestamp // extract tweet timestamp
$item['timestamp'] = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time'); $item['timestamp'] = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time');
// generate the title // generate the title