incoming webmentions, support AS1 activities with multiple objects

eg multiple repost-of. fixes https://console.cloud.google.com/errors/detail/CNm24c6QnvjQygE;time=P30D;refresh=true?project=bridgy-federated
pull/356/head
Ryan Barrett 2023-01-08 22:55:55 -08:00
rodzic a14c58ac47
commit 1a9655e441
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ class Webmention(View):
type_label = ' '.join((
self.source_obj.get('verb', ''),
self.source_obj.get('objectType', ''),
self.source_obj.get('object', {}).get('objectType', ''),
util.get_first(self.source_obj, 'object', {}).get('objectType', ''),
))
logger.info(f'Converted webmention to AS1: {type_label}: {json_dumps(self.source_obj, indent=2)}')