forked from indymedia/epicyon
Preferred name from within actor
parent
5e7fe5d54a
commit
0cf6dfd87b
5
utils.py
5
utils.py
|
@ -66,8 +66,9 @@ def getPreferredName(actor: str,personCache: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not personCache.get(actor):
|
if not personCache.get(actor):
|
||||||
return None
|
return None
|
||||||
if personCache[actor].get('preferredUsername'):
|
if personCache[actor].get('actor'):
|
||||||
return personCache[actor]['preferredUsername']
|
if personCache[actor]['actor'].get('preferredUsername'):
|
||||||
|
return personCache[actor]['actor']['preferredUsername']
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def getNicknameFromActor(actor: str) -> str:
|
def getNicknameFromActor(actor: str) -> str:
|
||||||
|
|
Loading…
Reference in New Issue