forked from indymedia/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):
|
if not personCache.get(actor):
|
||||||
return None
|
return None
|
||||||
if not personCache[actor].get('preferredUsername'):
|
if personCache[actor].get('preferredUsername'):
|
||||||
return personCache[actor]['preferredUsername']
|
return personCache[actor]['preferredUsername']
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue