From 410368d8ff73b53c4d3f9bfc995bc529ddca79e8 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Sun, 16 Aug 2026 10:48:53 -0700 Subject: [PATCH 1/2] downcase patreon email for webhook --- app/models/patreon_pledge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/patreon_pledge.rb b/app/models/patreon_pledge.rb index 13def5d5..608a3a10 100644 --- a/app/models/patreon_pledge.rb +++ b/app/models/patreon_pledge.rb @@ -44,7 +44,7 @@ def tier_name private def add_role_to_user - email = parsed_json["attributes"]["email"] + email = parsed_json["attributes"]["email"].downcase user = User.find_by("email = ? or username = ?", email, name) # if we can't find the user by the email, will have to assign later manually if user.present? && tier_name.present? From 1f559947ba49c341708329c7357a97678a136323 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Sun, 16 Aug 2026 11:05:44 -0700 Subject: [PATCH 2/2] to s --- app/models/patreon_pledge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/patreon_pledge.rb b/app/models/patreon_pledge.rb index 608a3a10..70b6b979 100644 --- a/app/models/patreon_pledge.rb +++ b/app/models/patreon_pledge.rb @@ -44,7 +44,7 @@ def tier_name private def add_role_to_user - email = parsed_json["attributes"]["email"].downcase + email = parsed_json["attributes"]["email"].to_s.downcase user = User.find_by("email = ? or username = ?", email, name) # if we can't find the user by the email, will have to assign later manually if user.present? && tier_name.present?