Skip to content

Commit

Permalink
Also drop reports from Malaysia
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 10, 2024
1 parent 339a8f4 commit d7e0f8d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,12 @@ 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.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")
if (p.Data["telephony_network_country_iso"] == "id" || p.Data["telephony_network_country_iso"] == "ke" || p.Data["telephony_network_country_iso"] == "my") && p.AppName == "bleeper" {
log.Info().
Str("user_text", p.UserText).
Str("user_id", p.Data["user_id"]).
Str("country_code", p.Data["telephony_network_country_iso"]).
Msg("Dropping report from Indonesia, Kenya or Malaysia")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
_, _ = w.Write([]byte("{}"))
Expand Down

0 comments on commit d7e0f8d

Please sign in to comment.