]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Pass profile down to spam-hiding function
authorEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 17:02:33 +0000 (13:02 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 17:02:33 +0000 (13:02 -0400)
classes/Notice.php

index a944830e51c17d7d44ca77ba75941b3cc9656ac6..58ae75fa68809f4e83c0a48d552c590252a6185d 100644 (file)
@@ -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.