Skip to content

Commit

Permalink
Add support for thanks.dev funding links
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 19, 2024
1 parent 9d78c49 commit 4e8200f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/owner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def yaml_funding_links
"https://polar.sh/#{v}"
when 'buy_me_a_coffee'
"https://buymeacoffee.com/#{v}"
when 'thanks_dev'
"https://thanks.dev/#{v}"
else
v
end
Expand Down
2 changes: 2 additions & 0 deletions app/models/package_usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def repo_funding_links
"https://polar.sh/#{v}"
when 'buy_me_a_coffee'
"https://buymeacoffee.com/#{v}"
when 'thanks_dev'
"https://thanks.dev/#{v}"
else
v
end
Expand Down
2 changes: 2 additions & 0 deletions app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ def repo_funding_links
"https://polar.sh/#{v}"
when "buy_me_a_coffee"
"https://buymeacoffee.com/#{v}"
when 'thanks_dev'
"https://thanks.dev/#{v}"
else
v
end
Expand Down

0 comments on commit 4e8200f

Please sign in to comment.