Skip to content

Commit 6f0d841

Browse files
committed
Adicionado o spamBlock no save:after Ref.: #1
1 parent 56e71ac commit 6f0d841

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Plugin.php

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public function _init()
102102
// Verifica se existem termos maliciosos e dispara o e-mail e a notificação
103103
$app->hook("entity(<<{$hooks}>>).save:after", function () use ($plugin, $last_spam_sent) {
104104
/** @var Entity $this */
105+
if($plugin->getSpamTerms($this, $plugin->config['termsBlock'])) {
106+
$this->spamBlock = true;
107+
}
108+
105109
$users = $plugin->getAdminUsers($this);
106110
$terms = array_merge($plugin->config['termsBlock'], $plugin->config['terms']);
107111

0 commit comments

Comments
 (0)