X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice.php;h=ebb5022b9910f6e1c89d528a620d461ae3bdc3cc;hb=54ad3b21d73fd08054bf0a65aa1cb9c13585de31;hp=1db431f2a76d7fb59371571234b8c49d7ac3ffbd;hpb=f1efb845e4955f398be3a7e36499474dc67bdade;p=quix0rs-gnu-social.git diff --git a/classes/Notice.php b/classes/Notice.php index 1db431f2a7..ebb5022b99 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -207,7 +207,7 @@ class Notice extends Memcached_DataObject # Sandboxed are non-false, but not 1, either - if (!$user->hasRight(Right::PUBLICNOTICE) || + if (!$profile->hasRight(Right::PUBLICNOTICE) || ($source && $autosource && in_array($source, $autosource))) { $notice->is_local = Notice::LOCAL_NONPUBLIC; } else {