forked from indymedia/epicyon
Remove status when getting preferred name
parent
0cf6dfd87b
commit
1dc1ee9d3b
2
utils.py
2
utils.py
|
@ -66,6 +66,8 @@ def getPreferredName(actor: str,personCache: {}) -> str:
|
|||
"""
|
||||
if not personCache.get(actor):
|
||||
return None
|
||||
if '/statuses/' in actor:
|
||||
actor=actor.split('/statuses/')
|
||||
if personCache[actor].get('actor'):
|
||||
if personCache[actor]['actor'].get('preferredUsername'):
|
||||
return personCache[actor]['actor']['preferredUsername']
|
||||
|
|
Loading…
Reference in New Issue