Add support for displaying events from Mobilizon
This commit is contained in:
parent
5b505b0e37
commit
d96ec913d4
3 changed files with 39 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue