We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56e71ac commit 6f0d841Copy full SHA for 6f0d841
Plugin.php
@@ -102,6 +102,10 @@ public function _init()
102
// Verifica se existem termos maliciosos e dispara o e-mail e a notificação
103
$app->hook("entity(<<{$hooks}>>).save:after", function () use ($plugin, $last_spam_sent) {
104
/** @var Entity $this */
105
+ if($plugin->getSpamTerms($this, $plugin->config['termsBlock'])) {
106
+ $this->spamBlock = true;
107
+ }
108
+
109
$users = $plugin->getAdminUsers($this);
110
$terms = array_merge($plugin->config['termsBlock'], $plugin->config['terms']);
111
0 commit comments