From 8d129b10ca3f194e55d5b33507de936c848537a2 Mon Sep 17 00:00:00 2001 From: Chris Eager <79161849+eager-signal@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:22:44 -0500 Subject: [PATCH] Revert "Update field names in HCaptchaResponse" This reverts commit 42d4574213ca96c74fccf57e1c11d9ff117c548e. --- .../textsecuregcm/captcha/HCaptchaResponse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java b/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java index c3bd30cb6..39db8c755 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java @@ -21,7 +21,7 @@ public class HCaptchaResponse { @JsonProperty boolean success; - @JsonProperty(value = "challenge_ts") + @JsonProperty(value = "challenge-ts") Duration challengeTs; @JsonProperty @@ -36,7 +36,7 @@ public class HCaptchaResponse { @JsonProperty float score; - @JsonProperty(value = "score_reason") + @JsonProperty(value = "score-reasons") List scoreReasons = Collections.emptyList(); public HCaptchaResponse() {