From: Evan Prodromou Date: Wed, 21 Mar 2012 17:02:33 +0000 (-0400) Subject: Pass profile down to spam-hiding function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b95de954632a7a89d0e6a04a4fc837361c732714;p=quix0rs-gnu-social.git Pass profile down to spam-hiding function --- 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.