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 (common_config('notice', 'hidespam')) {
|
||||||
if ($this->streamProfile->hasRole(Profile_role::SILENCED) &&
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user