diff options
author | Andrew Godwin | 2022-12-15 19:10:50 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-15 19:10:50 -0700 |
commit | e0f1bb629c2899c8450ae9f8190b761dfd501f36 (patch) | |
tree | 8d0cd64ef69b5317aea7c68becd4a6eb354ca11b /users/models | |
parent | faca9224edf82bc84c9b076d262c7d19cc976b03 (diff) | |
download | takahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.tar.gz takahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.tar.bz2 takahe-e0f1bb629c2899c8450ae9f8190b761dfd501f36.zip |
URLs can be empty too
Diffstat (limited to 'users/models')
-rw-r--r-- | users/models/identity.py | 2 |
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, |