]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow user to review their own profile stream even if silenced
authorEvan Prodromou <evan@status.net>
Tue, 17 Apr 2012 16:00:51 +0000 (12:00 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 17 Apr 2012 16:00:51 +0000 (12:00 -0400)
lib/profilenoticestream.php

index 5b02bc7b3f28004f1eb071cef13703c6a3174d33..dc825c9fb14e1224ea9543012d142cd5266d4e4e 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->hasRight(Right::REVIEWSPAM))) {
+                (empty($this->userProfile) || ($this->userProfile->id !== $this->streamProfile->id) && !$this->userProfile->hasRight(Right::REVIEWSPAM))) {
                 return true;
             }
         }