]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't leak private notices to facebook
authorEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:10:24 +0000 (16:10 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:10:24 +0000 (16:10 -0400)
plugins/FacebookBridge/FacebookBridgePlugin.php

index 9c2a4060900b09e957107c95d4fc0f5ac8f8fd44..d5a3f7c633f27a6650d8c183dbcd205775fd1420 100644 (file)
@@ -455,7 +455,7 @@ ENDOFSCRIPT;
      */
     function onStartEnqueueNotice($notice, &$transports)
     {
-        if (self::hasApplication() && $notice->isLocal()) {
+        if (self::hasApplication() && $notice->isLocal() && $notice->inScope(null)) {
             array_push($transports, 'facebook');
         }
         return true;