summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-15 19:10:50 -0700
committerAndrew Godwin2022-12-15 19:10:50 -0700
commite0f1bb629c2899c8450ae9f8190b761dfd501f36 (patch)
tree8d0cd64ef69b5317aea7c68becd4a6eb354ca11b
parentfaca9224edf82bc84c9b076d262c7d19cc976b03 (diff)
downloadtakahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.tar.gz
takahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.tar.bz2
takahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.zip
URLs can be empty too
-rw-r--r--users/models/identity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/models/identity.py b/users/models/identity.py
index 4ebf69f..2e13de1 100644
--- a/users/models/identity.py
+++ b/users/models/identity.py
@@ -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,