URLs can be empty too
This commit is contained in:
parent
faca9224ed
commit
e0f1bb629c
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue