DragonByte Tech
Well-known member
- Affected version
- 2.0.10
It is not possible to extend the spam cleaner's actions in a sensible manner because they are hardcoded:
Compare this with the bulk user actions array:
You have to work around this design flaw by extending
Please consider fixing this so that adding new spam cleaning action options can be done without needing hacky extensions like that.
Fillip
PHP:
$actions = $this->filter([
'action_threads' => 'bool',
'delete_messages' => 'bool',
'delete_conversations' => 'bool',
'ban_user' => 'bool',
'check_ips' => 'bool'
]);
Compare this with the bulk user actions array:
PHP:
$actions = $this->filter('actions', 'array');
You have to work around this design flaw by extending
public function cleanUpContent(array $actions)
and filter the additional actions that way, instead of simply having an array filter like the bulk user actions.Please consider fixing this so that adding new spam cleaning action options can be done without needing hacky extensions like that.
Fillip