don't send private notices over OStatus

This commit is contained in:
Evan Prodromou 2011-03-28 16:37:35 -04:00
parent 798b03fb5f
commit a74eda4e9a

View File

@ -111,7 +111,9 @@ class OStatusPlugin extends Plugin
*/
function onStartEnqueueNotice($notice, &$transports)
{
if ($notice->isLocal()) {
// FIXME: we don't do privacy-controlled OStatus updates yet.
// once that happens, finer grain of control here.
if ($notice->isLocal() && $notice->inScope(null)) {
// put our transport first, in case there's any conflict (like OMB)
array_unshift($transports, 'ostatus');
}