diff --git a/utils.py b/utils.py index 891ddc60..58ef1a63 100644 --- a/utils.py +++ b/utils.py @@ -66,7 +66,7 @@ def getPreferredName(actor: str,personCache: {}) -> str: """ if not personCache.get(actor): return None - if not personCache[actor].get('preferredUsername'): + if personCache[actor].get('preferredUsername'): return personCache[actor]['preferredUsername'] return None