Reverse logic

master
Bob Mottram 2019-08-22 13:44:24 +01:00
parent 53bd98075e
commit 5e7fe5d54a
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def getPreferredName(actor: str,personCache: {}) -> str:
"""
if not personCache.get(actor):
return None
if not personCache[actor].get('preferredUsername'):
if personCache[actor].get('preferredUsername'):
return personCache[actor]['preferredUsername']
return None