URLs can be empty too

This commit is contained in:
Andrew Godwin 2022-12-15 19:10:50 -07:00
parent faca9224ed
commit e0f1bb629c
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ class Identity(StatorModel):
"id": self.pk, "id": self.pk,
"username": self.username or "", "username": self.username or "",
"acct": self.username if self.local else self.handle, "acct": self.username if self.local else self.handle,
"url": self.absolute_profile_uri(), "url": self.absolute_profile_uri() or "",
"display_name": self.name or "", "display_name": self.name or "",
"note": self.summary or "", "note": self.summary or "",
"avatar": self.local_icon_url().absolute, "avatar": self.local_icon_url().absolute,