More donation types

main2
Bob Mottram 2019-11-06 23:41:57 +00:00
parent 005ff4b106
commit d9f126e2ac
1 changed files with 7 additions and 1 deletions

View File

@ -838,7 +838,7 @@ def personUnsnooze(baseDir: str,nickname: str,domain: str,snoozeActor: str) -> N
def getDonationTypes() -> str: def getDonationTypes() -> str:
return ('patreon','paypal','gofundme','liberapay') return ('patreon','paypal','gofundme','liberapay','kickstarter','indiegogo','crowdsupply')
def getDonationUrl(actorJson: {}) -> str: def getDonationUrl(actorJson: {}) -> str:
"""Returns a link used for donations """Returns a link used for donations
@ -879,6 +879,12 @@ def setDonationUrl(actorJson: {},donateUrl: str) -> None:
donateName='LiberaPay' donateName='LiberaPay'
elif 'paypal' in donateUrl: elif 'paypal' in donateUrl:
donateName='PayPal' donateName='PayPal'
elif 'kickstarter' in donateUrl:
donateName='Kickstarter'
elif 'indiegogo' in donateUrl:
donateName='IndieGoGo'
elif 'crowdsupply' in donateUrl:
donateName='CrowdSupply'
else: else:
return return