From ae885c0e0024dcae3f9cb198ed227a241aecd77e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 17 Apr 2012 12:00:51 -0400 Subject: [PATCH] allow user to review their own profile stream even if silenced --- lib/profilenoticestream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }