diff --git a/briar.py b/briar.py index 01a64e2f5..66ef59080 100644 --- a/briar.py +++ b/briar.py @@ -27,7 +27,7 @@ def get_briar_address(actor_json: {}) -> str: continue if not property_value.get('value'): continue - if property_value['type'] != 'PropertyValue': + if not property_value['type'].endswith('PropertyValue'): continue property_value['value'] = property_value['value'].strip() if len(property_value['value']) < 50: @@ -106,7 +106,7 @@ def set_briar_address(actor_json: {}, briar_address: str) -> None: continue if not name_value.lower().startswith('briar'): continue - if property_value['type'] != 'PropertyValue': + if not property_value['type'].endswith('PropertyValue'): continue property_value['value'] = briar_address return diff --git a/cwtch.py b/cwtch.py index 85eef02c8..a52b2c492 100644 --- a/cwtch.py +++ b/cwtch.py @@ -29,7 +29,7 @@ def get_cwtch_address(actor_json: {}) -> str: continue if not property_value.get('value'): continue - if property_value['type'] != 'PropertyValue': + if not property_value['type'].endswith('PropertyValue'): continue property_value['value'] = property_value['value'].strip() if len(property_value['value']) < 2: @@ -94,7 +94,7 @@ def set_cwtch_address(actor_json: {}, cwtch_address: str) -> None: continue if not name_value.lower().startswith('cwtch'): continue - if property_value['type'] != 'PropertyValue': + if not property_value['type'].endswith('PropertyValue'): continue property_value['value'] = cwtch_address return diff --git a/donate.py b/donate.py index c013b7ea4..987b01ab8 100644 --- a/donate.py +++ b/donate.py @@ -38,7 +38,7 @@ def get_donation_url(actor_json: {}) -> str: continue if not property_value.get('value'): continue - if property_value['type'] != 'PropertyValue': + if not property_value['type'].endswith('PropertyValue'): continue if '