quick fix: ensure the to property is an array on outbound AP Profiles

various-improvements
Alain St-Denis 2023-10-31 09:56:22 -04:00
rodzic ca3f927aa9
commit 340e5cafe7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -611,6 +611,7 @@ class Person(Object, base.Profile):
self.followers = f'{with_slash(self.id)}followers/'
self.following = f'{with_slash(self.id)}following/'
self.outbox = f'{with_slash(self.id)}outbox/'
if isinstance(self.to, str): self.to = [self.to]
if hasattr(self, 'times'):
if self.times.get('updated',0) > self.times.get('created',0):