From e0f1bb629c2899c8450ae9f8190b761dfd501f36 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 19:10:50 -0700 Subject: URLs can be empty too --- users/models/identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/models') 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, -- cgit v1.2.3