forked from indymedia/epicyon
More donation types
parent
005ff4b106
commit
d9f126e2ac
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue