Commit cbe003eb authored by Evan Prodromou's avatar Evan Prodromou

don't leak private notices to facebook

parent 683bd3f2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment