Skip to content

Commit

Permalink
Also drop reports from Kenya
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 10, 2024
1 parent 541f72a commit 339a8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("{}"))
Expand Down

0 comments on commit 339a8f4

Please sign in to comment.