mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Merge branch 'buymeacoffee' into 'master'
insert_funding_yml_donation_links: support buymeacoffee See merge request fdroid/fdroidserver!1468
This commit is contained in:
commit
b53c498fcd
@ -855,7 +855,15 @@ def insert_funding_yml_donation_links(apps):
|
|||||||
if 'open_collective' in data:
|
if 'open_collective' in data:
|
||||||
del data['open_collective']
|
del data['open_collective']
|
||||||
# this tuple provides a preference ordering
|
# this tuple provides a preference ordering
|
||||||
for k in ('custom', 'github', 'patreon', 'community_bridge', 'ko_fi', 'issuehunt'):
|
for k in (
|
||||||
|
'custom',
|
||||||
|
'github',
|
||||||
|
'patreon',
|
||||||
|
'community_bridge',
|
||||||
|
'ko_fi',
|
||||||
|
'issuehunt',
|
||||||
|
'buy_me_a_coffee'
|
||||||
|
):
|
||||||
v = data.get(k)
|
v = data.get(k)
|
||||||
if not v:
|
if not v:
|
||||||
continue
|
continue
|
||||||
@ -889,6 +897,11 @@ def insert_funding_yml_donation_links(apps):
|
|||||||
if s:
|
if s:
|
||||||
app['Donate'] = 'https://patreon.com/' + s
|
app['Donate'] = 'https://patreon.com/' + s
|
||||||
break
|
break
|
||||||
|
elif k == 'buy_me_a_coffee':
|
||||||
|
s = sanitize_funding_yml_name(v)
|
||||||
|
if s:
|
||||||
|
app['Donate'] = 'https://www.buymeacoffee.com/' + s
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
def copy_triple_t_store_metadata(apps):
|
def copy_triple_t_store_metadata(apps):
|
||||||
|
Loading…
Reference in New Issue
Block a user