From d9f126e2ac645284e06db330f1d8d8f2f3dd789a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Nov 2019 23:41:57 +0000 Subject: [PATCH] More donation types --- person.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index 15f3756f..c02f6468 100644 --- a/person.py +++ b/person.py @@ -838,7 +838,7 @@ def personUnsnooze(baseDir: str,nickname: str,domain: str,snoozeActor: str) -> N def getDonationTypes() -> str: - return ('patreon','paypal','gofundme','liberapay') + return ('patreon','paypal','gofundme','liberapay','kickstarter','indiegogo','crowdsupply') def getDonationUrl(actorJson: {}) -> str: """Returns a link used for donations @@ -879,6 +879,12 @@ def setDonationUrl(actorJson: {},donateUrl: str) -> None: donateName='LiberaPay' elif 'paypal' in donateUrl: donateName='PayPal' + elif 'kickstarter' in donateUrl: + donateName='Kickstarter' + elif 'indiegogo' in donateUrl: + donateName='IndieGoGo' + elif 'crowdsupply' in donateUrl: + donateName='CrowdSupply' else: return