]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup check on profile notice stream
authorEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 01:01:34 +0000 (21:01 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 24 Apr 2012 01:01:34 +0000 (21:01 -0400)
lib/profilenoticestream.php

index dc825c9fb14e1224ea9543012d142cd5266d4e4e..f7154a52be9563ae3bc90551ee370838ae84771d 100644 (file)
@@ -95,7 +95,7 @@ class ProfileNoticeStream extends ScopingNoticeStream
 
         if (common_config('notice', 'hidespam')) {
             if ($this->streamProfile->hasRole(Profile_role::SILENCED) &&
-                (empty($this->userProfile) || ($this->userProfile->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM))) {
+                (empty($this->userProfile) || (($this->userProfile->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM)))) {
                 return true;
             }
         }