diff --git a/server/src/web.rs b/server/src/web.rs index 4750a77..de66482 100644 --- a/server/src/web.rs +++ b/server/src/web.rs @@ -406,6 +406,10 @@ fn stats_seven_days(state: Arc) -> BoxedFilter<(impl Reply, )> { fn contribute(state: Arc) -> BoxedFilter<(impl Reply, )> { async fn logic(state: Arc, listing: PartyFinderListing) -> std::result::Result { + if listing.created_world >= 10_000 || listing.home_world >= 10_000 || listing.current_world >= 10_000 { + return Ok("invalid listing".to_string()); + } + if listing.seconds_remaining > 60 * 60 { return Ok("invalid listing".to_string()); }