Commit ad1649e4 authored by Evan Prodromou's avatar Evan Prodromou

Pass profile down to spam-hiding function

parent 3cc69c67
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment