forked from indymedia/epicyon
split first half
This commit is contained in:
1 parent
1dc1ee9d3b
commit
4e3d868b10
1 file changed
+1
-1
@@ -67,7 +67,7 @@ def getPreferredName(actor: str,personCache: {}) -> str:
|
||||
if not personCache.get(actor):
|
||||
return None
|
||||
if '/statuses/' in actor:
|
||||
actor=actor.split('/statuses/')
|
||||
actor=actor.split('/statuses/')[0]
|
||||
if personCache[actor].get('actor'):
|
||||
if personCache[actor]['actor'].get('preferredUsername'):
|
||||
return personCache[actor]['actor']['preferredUsername']
|
||||
|
||||
Reference in new issue
Block a user