Clean up donation url

main
Bob Mottram 2024-08-12 22:10:54 +01:00
parent 34e8453fd5
commit b83d07bbac
1 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,9 @@ def get_donation_url(actor_json: {}) -> str:
return remove_link_tracking(donate_url)
else:
donate_url = remove_html(property_value[prop_value_name])
if ' ' in donate_url:
donate_url = donate_url.split(' ')[0]
if '://' in donate_url:
return remove_link_tracking(donate_url)
return ''