For Person, if the url property is missing, set it to id.

ap-processing-improvements
Alain St-Denis 2023-07-23 13:03:20 -04:00
rodzic cb96d83793
commit 091b156703
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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/'