Fix empty display name issue
parent
96cf0f9aa2
commit
3fc6ac19f4
|
@ -52,7 +52,9 @@ class Actor:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def display_name(self) -> str:
|
def display_name(self) -> str:
|
||||||
return self.name or self.preferred_username
|
if self.name:
|
||||||
|
return self.name
|
||||||
|
return self.preferred_username
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def handle(self) -> str:
|
def handle(self) -> str:
|
||||||
|
|
Loading…
Reference in New Issue