Browse Source

[TwitterBridge] Avoid empty content caused by new login policy

Twitter now requires login to access "Tweets & Replies" which
breaks feeds using the default behavior. Using the "Without
replies" option still works.

This commit makes the "Without replies" option default. That way
existing feeds will return contents again. The parameter can still
be checked but its status has no effect anymore.

Notice: The parameter should not be removed as that would cause
any feed using the parameter to stop working because of "Invalid
parameter"

References #544
logmanoriginal 7 years ago
parent
commit
ab46af9719
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bridges/TwitterBridge.php

+ 3 - 2
bridges/TwitterBridge.php

@@ -71,8 +71,9 @@ class TwitterBridge extends BridgeAbstract {
 			. '&f=tweets';
 		case 'By username':
 			return self::URI
-			. urlencode($this->getInput('u'))
-			. ($this->getInput('norep') ? '' : '/with_replies');
+			. urlencode($this->getInput('u'));
+			// Always return without replies!
+			// . ($this->getInput('norep') ? '' : '/with_replies');
 		default: return parent::getURI();
 		}
 	}