URLs can be empty too

This commit is contained in:
Andrew Godwin 2022-12-15 19:10:50 -07:00
parent faca9224ed
commit e0f1bb629c

View file

@ -507,7 +507,7 @@ class Identity(StatorModel):
"id": self.pk,
"username": self.username or "",
"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 "",
"note": self.summary or "",
"avatar": self.local_icon_url().absolute,