Skip to content

Commit

Permalink
Drop reports from Indonesia
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 10, 2024
1 parent 63c999d commit 541f72a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ func (s *submitServer) parseRequest(ctx context.Context, w http.ResponseWriter,
_, _ = w.Write([]byte("{}"))
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")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
_, _ = w.Write([]byte("{}"))
return nil
}

userID, hasUserID := p.Data["user_id"]
delete(p.Data, "user_id")
Expand Down

0 comments on commit 541f72a

Please sign in to comment.