diff --git a/modules/fediverse/ap_actor.py b/modules/fediverse/ap_actor.py index 9296453c..071e4ffa 100644 --- a/modules/fediverse/ap_actor.py +++ b/modules/fediverse/ap_actor.py @@ -17,7 +17,7 @@ class Actor(object): if response.code == 200: response = response.json() self.username = response["preferredUsername"] - self.display_name = response.get("name", self.username) + self.display_name = response.get("name") or self.username self.inbox = Inbox(response["inbox"]) self.outbox = Outbox(response["outbox"]) self.followers = response["followers"]