[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

View file

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