forked from indymedia/epicyon
Invert logic
parent
e7239a078b
commit
ba091b74e4
2
inbox.py
2
inbox.py
|
@ -1479,7 +1479,7 @@ def validPostContent(baseDir: str,nickname: str,domain: str, \
|
||||||
print('REJECT: Too many tags in post - '+messageJson['object']['tag'])
|
print('REJECT: Too many tags in post - '+messageJson['object']['tag'])
|
||||||
return False
|
return False
|
||||||
# check for filtered content
|
# 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')
|
print('REJECT: content filtered')
|
||||||
return False
|
return False
|
||||||
print('ACCEPT: post content is valid')
|
print('ACCEPT: post content is valid')
|
||||||
|
|
Loading…
Reference in New Issue