diff --git a/Sources/App/Core/Github.swift b/Sources/App/Core/Github.swift index 48aac40f4..ef91bcabe 100644 --- a/Sources/App/Core/Github.swift +++ b/Sources/App/Core/Github.swift @@ -196,7 +196,7 @@ extension Github { } guard response.status == .ok else { - Current.logger().warning("fetchResource request failed with status \(response.status)") + Current.logger().warning("fetchResource<\(T.self)> request failed with status \(response.status)") throw Error.requestFailed(response.status) } @@ -390,6 +390,7 @@ extension Github { case patreon = "PATREON" case polar = "POLAR" case tidelift = "TIDELIFT" + case thanksDev = "THANKS_DEV" } var platform: Platform diff --git a/Sources/App/Models/FundingLink.swift b/Sources/App/Models/FundingLink.swift index dc9567337..43bcf6608 100644 --- a/Sources/App/Models/FundingLink.swift +++ b/Sources/App/Models/FundingLink.swift @@ -30,6 +30,7 @@ struct FundingLink: Codable, Equatable { case patreon case polar case tidelift + case thanksDev } var platform: Platform @@ -84,6 +85,8 @@ extension FundingLink.Platform { self = .polar case .tidelift: self = .tidelift + case .thanksDev: + self = .thanksDev } } } diff --git a/Sources/App/Views/PackageController/PackageShow+View.swift b/Sources/App/Views/PackageController/PackageShow+View.swift index 364ee7fae..83da8f04e 100644 --- a/Sources/App/Views/PackageController/PackageShow+View.swift +++ b/Sources/App/Views/PackageController/PackageShow+View.swift @@ -377,6 +377,7 @@ extension FundingLink { case .patreon: return "Patreon" case .polar: return "Polar" case .tidelift: return "Tidelift" + case .thanksDev: return "thanks.dev" } } }