mirror of https://gitlab.com/bashrc2/epicyon
Alternative property value field
parent
7648c1f6df
commit
fc2697c976
|
@ -146,14 +146,14 @@ def _person_receive_update_outbox(recent_posts_cache: {},
|
||||||
get_attachment_property_value(new_property_value)
|
get_attachment_property_value(new_property_value)
|
||||||
if not prop_value_name:
|
if not prop_value_name:
|
||||||
continue
|
continue
|
||||||
if new_property_value['type'] != 'PropertyValue':
|
if not new_property_value['type'].endswith('PropertyValue'):
|
||||||
continue
|
continue
|
||||||
if 'attachment' not in actor_json:
|
if 'attachment' not in actor_json:
|
||||||
continue
|
continue
|
||||||
found = False
|
found = False
|
||||||
for attach_idx, _ in enumerate(actor_json['attachment']):
|
for attach_idx, _ in enumerate(actor_json['attachment']):
|
||||||
if actor_json['attachment'][attach_idx]['type'] != \
|
attach_type = actor_json['attachment'][attach_idx]['type']
|
||||||
'PropertyValue':
|
if not attach_type.endswith('PropertyValue'):
|
||||||
continue
|
continue
|
||||||
attach_name = ''
|
attach_name = ''
|
||||||
if actor_json['attachment'][attach_idx].get('name'):
|
if actor_json['attachment'][attach_idx].get('name'):
|
||||||
|
|
Loading…
Reference in New Issue