forked from GNUsocial/gnu-social
make scale() public
This commit is contained in:
parent
1d46a1288f
commit
8a1911322f
@ -154,7 +154,7 @@ class Spam_score extends Managed_DataObject
|
||||
}
|
||||
}
|
||||
|
||||
protected static function scale($score)
|
||||
public static function scale($score)
|
||||
{
|
||||
$raw = round($score * Spam_score::MAX_SCALE);
|
||||
return max(0, min(Spam_score::MAX_SCALE, $raw));
|
||||
|
Loading…
Reference in New Issue
Block a user