From ad1649e4ba2ec9d6d7a9285711b121705865eddb Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 21 Mar 2012 13:02:33 -0400 Subject: [PATCH] Pass profile down to spam-hiding function --- classes/Notice.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index a944830e51..58ae75fa68 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2389,7 +2389,7 @@ class Notice extends Managed_DataObject if ($scope == 0) { // Not private - return !$this->isHiddenSpam(); + return !$this->isHiddenSpam($profile); } else { // Private, somehow @@ -2461,12 +2461,11 @@ class Notice extends Managed_DataObject } } - return !$this->isHiddenSpam(); + return !$this->isHiddenSpam($profile); } } - function isHiddenSpam() { - + function isHiddenSpam($profile) { // Hide posts by silenced users from everyone but moderators.