Apply filters to display name lookups

merge-requests/10/merge
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']
if dangerousMarkup(personJson['name'], False):
displayName = '*ADVERSARY*'
elif isFiltered(baseDir,
nickname, domain,
displayName):
displayName = '*FILTERED*'
# have they moved?
if personJson.get('movedTo'):
displayName += ''