From: Evan Prodromou <evan@status.net>
Date: Tue, 17 Apr 2012 16:00:51 +0000 (-0400)
Subject: allow user to review their own profile stream even if silenced
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae885c0e0024dcae3f9cb198ed227a241aecd77e;p=quix0rs-gnu-social.git

allow user to review their own profile stream even if silenced
---

diff --git a/lib/profilenoticestream.php b/lib/profilenoticestream.php
index 5b02bc7b3f..dc825c9fb1 100644
--- a/lib/profilenoticestream.php
+++ b/lib/profilenoticestream.php
@@ -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;
             }
         }