mirror of https://gitlab.com/bashrc2/epicyon
Reverse logic
parent
53bd98075e
commit
5e7fe5d54a
2
utils.py
2
utils.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue