From 4e3d868b101f48fdf4791d8c24e768222e4d83dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Aug 2019 14:21:16 +0100 Subject: [PATCH] split first half --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 13a9a2b6..6bd6d307 100644 --- a/utils.py +++ b/utils.py @@ -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']