fix: reject non-NA worlds outright
This commit is contained in:
parent
6b3be655b7
commit
8febbfa30b
|
@ -406,6 +406,10 @@ fn stats_seven_days(state: Arc<State>) -> BoxedFilter<(impl Reply, )> {
|
||||||
|
|
||||||
fn contribute(state: Arc<State>) -> BoxedFilter<(impl Reply, )> {
|
fn contribute(state: Arc<State>) -> BoxedFilter<(impl Reply, )> {
|
||||||
async fn logic(state: Arc<State>, listing: PartyFinderListing) -> std::result::Result<impl Reply, Infallible> {
|
async fn logic(state: Arc<State>, listing: PartyFinderListing) -> std::result::Result<impl Reply, Infallible> {
|
||||||
|
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 {
|
if listing.seconds_remaining > 60 * 60 {
|
||||||
return Ok("invalid listing".to_string());
|
return Ok("invalid listing".to_string());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user