🎨 Plugin funding

This commit is contained in:
Liang Ding 2023-05-06 20:53:12 +08:00
parent 2760cff3be
commit 2e71c614c7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -169,13 +169,13 @@ func getPreferredFunding(funding *Funding) string {
}
if "" != funding.OpenCollective {
return funding.OpenCollective
return "https://opencollective.com/" + funding.OpenCollective
}
if "" != funding.Patreon {
return funding.Patreon
return "https://www.patreon.com/" + funding.Patreon
}
if "" != funding.GitHub {
return funding.GitHub
return "https://github.com/sponsors/" + funding.GitHub
}
if 0 < len(funding.Custom) {
return funding.Custom[0]