Add support for displaying events from Mobilizon

This commit is contained in:
Thomas Sileo 2022-11-07 20:35:23 +01:00
parent 5b505b0e37
commit d96ec913d4
3 changed files with 39 additions and 2 deletions

View file

@ -96,6 +96,9 @@ class Object:
def attachments(self) -> list["Attachment"]:
attachments = []
for obj in ap.as_list(self.ap_object.get("attachment", [])):
if obj.get("type") == "PropertyValue":
continue
if obj.get("type") == "Link":
attachments.append(
Attachment.parse_obj(