From 4e8200f4d88cd41af774eea9d8cd477e192b71d6 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Tue, 19 Nov 2024 17:55:25 +0000 Subject: [PATCH] Add support for thanks.dev funding links --- app/models/owner.rb | 2 ++ app/models/package_usage.rb | 2 ++ app/models/repository.rb | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/models/owner.rb b/app/models/owner.rb index 0e5b6fda..2538889d 100644 --- a/app/models/owner.rb +++ b/app/models/owner.rb @@ -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 diff --git a/app/models/package_usage.rb b/app/models/package_usage.rb index 7d3deb8a..40ccea44 100644 --- a/app/models/package_usage.rb +++ b/app/models/package_usage.rb @@ -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 diff --git a/app/models/repository.rb b/app/models/repository.rb index d687374a..8a5c21c7 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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