fixup check on profile notice stream
This commit is contained in:
parent
4746016dd5
commit
2eed1e2ae2
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user