From: Mikael Nordfeldth Date: Wed, 2 Mar 2016 11:42:09 +0000 (+0100) Subject: Only OStatus distribute if profile hasRight to PUBLICNOTICE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4e0a39dad5e4ea72e462368673371f5161abffa;p=quix0rs-gnu-social.git Only OStatus distribute if profile hasRight to PUBLICNOTICE --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index d702703c81..583ad8ef13 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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");