Apply filters to display name lookups

main
Bob Mottram 2021-01-31 11:22:19 +00:00
parent 8bbd9b6173
commit 00b7cf430f
1 changed files with 4 additions and 0 deletions

View File

@ -295,6 +295,10 @@ def getPersonBox(baseDir: str, session, wfRequest: {},
displayName = personJson['name'] displayName = personJson['name']
if dangerousMarkup(personJson['name'], False): if dangerousMarkup(personJson['name'], False):
displayName = '*ADVERSARY*' displayName = '*ADVERSARY*'
elif isFiltered(baseDir,
nickname, domain,
displayName):
displayName = '*FILTERED*'
# have they moved? # have they moved?
if personJson.get('movedTo'): if personJson.get('movedTo'):
displayName += '' displayName += ''