]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only OStatus distribute if profile hasRight to PUBLICNOTICE
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 2 Mar 2016 11:42:09 +0000 (12:42 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 2 Mar 2016 11:42:09 +0000 (12:42 +0100)
plugins/OStatus/OStatusPlugin.php

index d702703c81afb30df2e8d0d625dd89beee39459a..583ad8ef139645674f94ab85a782bd95de53230c 100644 (file)
@@ -129,7 +129,7 @@ class OStatusPlugin extends Plugin
      */
     function onStartEnqueueNotice($notice, &$transports)
     {
-        if ($notice->inScope(null)) {
+        if ($notice->inScope(null) && $notice->getProfile()->hasRight(Right::PUBLICNOTICE)) {
             // put our transport first, in case there's any conflict (like OMB)
             array_unshift($transports, 'ostatus');
             $this->log(LOG_INFO, "Notice {$notice->id} queued for OStatus processing");