Browse Source

[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
logmanoriginal 7 years ago
parent
commit
ae59b20c0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bridges/TwitterBridge.php

+ 1 - 1
bridges/TwitterBridge.php

@@ -117,7 +117,7 @@ class TwitterBridge extends BridgeAbstract {
 			// get TweetID
 			$item['id'] = $tweet->getAttribute('data-tweet-id');
 			// 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
 			$item['timestamp'] = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time');
 			// generate the title