Invert logic

main
Bob Mottram 2020-02-05 17:30:49 +00:00
parent e7239a078b
commit ba091b74e4
1 changed files with 1 additions and 1 deletions

View File

@ -1479,7 +1479,7 @@ def validPostContent(baseDir: str,nickname: str,domain: str, \
print('REJECT: Too many tags in post - '+messageJson['object']['tag'])
return False
# check for filtered content
if not isFiltered(baseDir,nickname,domain,messageJson['object']['content']):
if isFiltered(baseDir,nickname,domain,messageJson['object']['content']):
print('REJECT: content filtered')
return False
print('ACCEPT: post content is valid')