add: check ip ban endpoint

This commit is contained in:
trisua 2025-07-23 14:44:47 -04:00
parent 8786cb4781
commit e78c43ab62
8 changed files with 68 additions and 6 deletions

View file

@ -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);