mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
Fix empty display name issue
This commit is contained in:
parent
96cf0f9aa2
commit
3fc6ac19f4
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue