From fc2697c97669335f9448c4c81f507502f8291130 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 11 May 2022 18:23:01 +0100 Subject: [PATCH] Alternative property value field --- outbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/outbox.py b/outbox.py index 63973e610..bd16edfb7 100644 --- a/outbox.py +++ b/outbox.py @@ -146,14 +146,14 @@ def _person_receive_update_outbox(recent_posts_cache: {}, get_attachment_property_value(new_property_value) if not prop_value_name: continue - if new_property_value['type'] != 'PropertyValue': + if not new_property_value['type'].endswith('PropertyValue'): continue if 'attachment' not in actor_json: continue found = False for attach_idx, _ in enumerate(actor_json['attachment']): - if actor_json['attachment'][attach_idx]['type'] != \ - 'PropertyValue': + attach_type = actor_json['attachment'][attach_idx]['type'] + if not attach_type.endswith('PropertyValue'): continue attach_name = '' if actor_json['attachment'][attach_idx].get('name'):