mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-23 05:56:29 +00:00
Fix some of that webfinger breakage
This commit is contained in:
parent
01e944176c
commit
c890382b30
1 changed files with 6 additions and 3 deletions
|
@ -414,7 +414,7 @@ class Identity(StatorModel):
|
||||||
### ActivityPub (outbound) ###
|
### ActivityPub (outbound) ###
|
||||||
|
|
||||||
def to_webfinger(self):
|
def to_webfinger(self):
|
||||||
aliases = self.all_absolute_profile_uris()
|
aliases = [self.absolute_profile_uri()]
|
||||||
|
|
||||||
actor_links = []
|
actor_links = []
|
||||||
|
|
||||||
|
@ -432,8 +432,11 @@ class Identity(StatorModel):
|
||||||
# Exposing the activity+json will allow migrating off server
|
# Exposing the activity+json will allow migrating off server
|
||||||
actor_links.extend(
|
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,
|
||||||
|
}
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue