From 091b156703622c0e1a29c805aff0b93127b9621a Mon Sep 17 00:00:00 2001 From: Alain St-Denis Date: Sun, 23 Jul 2023 13:03:20 -0400 Subject: [PATCH] For Person, if the url property is missing, set it to id. --- federation/entities/activitypub/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/federation/entities/activitypub/models.py b/federation/entities/activitypub/models.py index cd32fcd..9989177 100644 --- a/federation/entities/activitypub/models.py +++ b/federation/entities/activitypub/models.py @@ -602,6 +602,9 @@ class Person(Object, base.Profile): # multi-protocol platform if self.finger and self.guid is not missing and self.handle is missing: self.handle = self.finger + # Some platforms don't set this property. + if self.url is missing: + self.url = self.id def to_as2(self): self.followers = f'{with_slash(self.id)}followers/'