don't push twitter stuff public if its not public

This commit is contained in:
Evan Prodromou 2011-03-28 12:56:18 -04:00
parent b1783e8d49
commit 683bd3f2b5

View File

@ -228,7 +228,7 @@ class TwitterBridgePlugin extends Plugin
*/
function onStartEnqueueNotice($notice, &$transports)
{
if (self::hasKeys() && $notice->isLocal()) {
if (self::hasKeys() && $notice->isLocal() && $notice->inScope(null)) {
// Avoid a possible loop
if ($notice->source != 'twitter') {
array_push($transports, 'twitter');