From 339a8f4c00155b699d7f3645326a9a9b6eb77143 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 10 Oct 2024 14:32:23 +0300 Subject: [PATCH] Also drop reports from Kenya --- submit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submit.go b/submit.go index fa15710..66fc832 100644 --- a/submit.go +++ b/submit.go @@ -387,8 +387,8 @@ func (s *submitServer) parseRequest(ctx context.Context, w http.ResponseWriter, return nil } // TODO remove this after the reports calm down - if p.Data["telephony_network_country_iso"] == "id" && p.AppName == "bleeper" { - log.Info().Str("user_text", p.UserText).Msg("Dropping report from Indonesia") + if (p.Data["telephony_network_country_iso"] == "id" || p.Data["telephony_network_country_iso"] == "ke") && p.AppName == "bleeper" { + log.Info().Str("user_text", p.UserText).Str("user_id", p.Data["user_id"]).Msg("Dropping report from Indonesia or Kenya") w.Header().Set("Content-Type", "application/json") w.WriteHeader(200) _, _ = w.Write([]byte("{}"))