We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b95de954 authored by Evan Prodromou's avatar Evan Prodromou

Pass profile down to spam-hiding function

parent d03ca746
...@@ -2389,7 +2389,7 @@ class Notice extends Managed_DataObject ...@@ -2389,7 +2389,7 @@ class Notice extends Managed_DataObject
if ($scope == 0) { // Not private if ($scope == 0) { // Not private
return !$this->isHiddenSpam(); return !$this->isHiddenSpam($profile);
} else { // Private, somehow } else { // Private, somehow
...@@ -2461,12 +2461,11 @@ class Notice extends Managed_DataObject ...@@ -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. // 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