[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
This commit is contained in:
logmanoriginal 2017-07-03 19:52:56 +02:00
parent 06babeb644
commit ab46af9719
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}
}