From c890382b3047690a46e018641610d43795cfc4be Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 22 Dec 2022 10:43:53 -0800 Subject: [PATCH] Fix some of that webfinger breakage --- users/models/identity.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/users/models/identity.py b/users/models/identity.py index 9d393a6..98caa1a 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -414,7 +414,7 @@ class Identity(StatorModel): ### ActivityPub (outbound) ### def to_webfinger(self): - aliases = self.all_absolute_profile_uris() + aliases = [self.absolute_profile_uri()] actor_links = [] @@ -432,8 +432,11 @@ class Identity(StatorModel): # Exposing the activity+json will allow migrating off server actor_links.extend( [ - {"rel": "self", "type": "application/activity+json", "href": alias_uri} - for alias_uri in aliases + { + "rel": "self", + "type": "application/activity+json", + "href": self.actor_uri, + } ] )