add: check ip ban endpoint
This commit is contained in:
parent
8786cb4781
commit
e78c43ab62
8 changed files with 68 additions and 6 deletions
|
@ -408,6 +408,10 @@ impl DataManager {
|
|||
|
||||
// check muted phrases
|
||||
for phrase in receiver.settings.muted {
|
||||
if phrase.is_empty() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if data.content.contains(&phrase) {
|
||||
// act like the question was created so theyre less likely to try and send it again or bypass
|
||||
return Ok(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue