From 93ccb5dd32f4e3942d08814e5a86fb30c90c9ff6 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 4 Dec 2022 21:13:33 -0700 Subject: Make search work with URLs --- users/models/identity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'users/models') diff --git a/users/models/identity.py b/users/models/identity.py index c435713..bbedceb 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -241,9 +241,11 @@ class Identity(StatorModel): @property def handle(self): + if self.username is None: + return "(unknown user)" if self.domain_id: return f"{self.username}@{self.domain_id}" - return f"{self.username}@unknown.invalid" + return f"{self.username}@(unknown server)" @property def data_age(self) -> float: -- cgit v1.2.3