don't leak private notices to facebook

This commit is contained in:
Evan Prodromou 2011-03-28 16:10:24 -04:00
parent 683bd3f2b5
commit cbe003eb38

View File

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