]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't send private notices over OStatus
authorEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:37:35 +0000 (16:37 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:37:35 +0000 (16:37 -0400)
plugins/OStatus/OStatusPlugin.php

index e75130b9e981f0dfe06083851c3f3fc01c02ff27..26b7ade64dbf2203525f35880aaa4040b55e0025 100644 (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');
         }