From 3fc6ac19f44c7de2961633763351cadf1cd7392c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 31 Jul 2022 18:48:54 +0200 Subject: [PATCH] Fix empty display name issue --- app/actor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/actor.py b/app/actor.py index e2caaad..b6878ac 100644 --- a/app/actor.py +++ b/app/actor.py @@ -52,7 +52,9 @@ class Actor: @property def display_name(self) -> str: - return self.name or self.preferred_username + if self.name: + return self.name + return self.preferred_username @property def handle(self) -> str: