From: Evan Prodromou Date: Mon, 28 Mar 2011 20:37:35 +0000 (-0400) Subject: don't send private notices over OStatus X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a74eda4e9ad344ba965c111567bd285266a95e23;p=quix0rs-gnu-social.git don't send private notices over OStatus --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index e75130b9e9..26b7ade64d 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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'); }