Skip to content

Commit

Permalink
Drop reports from Bleeper 4.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 11, 2024
1 parent d7e0f8d commit b369dcc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,15 @@ func (s *submitServer) parseRequest(ctx context.Context, w http.ResponseWriter,
w.WriteHeader(200)
_, _ = w.Write([]byte("{}"))
return nil
} else if p.Data["Version"] == "4.6.1 [140601]" && p.AppName == "bleeper" {
log.Info().
Str("user_text", p.UserText).
Str("user_id", p.Data["user_id"]).
Msg("Dropping report from Bleeper 4.6.1")
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
_, _ = w.Write([]byte("{}"))
return nil
}

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

0 comments on commit b369dcc

Please sign in to comment.