Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent score lookups when querying
/scores/{ruleset}/0
Closes ppy#11169. The `scores` table can contain records with `legacy_score_id = 0`. These records correspond to rows from `osu_scores_*` (non-high) tables which are always ephemeral (they get recycled every 24 hours). To avoid bogus lookups when querying the show controller endpoint, just explicitly disallow 0 (and negative numbers) from being unmapped via `legacy_score_id`.
- Loading branch information