stadust / pointercrate

Rewrite of the https://pointercrate.com backend in Rust
MIT License
78 stars 50 forks source link

Add Raw Footage Requirement to Record Submitter #63

Closed NimbusGD closed 2 years ago

stadust commented 2 years ago

There's also some logic changes that need to happen to ensure that the server actually rejects submissions without raw footage. If you wanna make those changes yourself, here's a brief overview:

  1. The following code currently checks whether the submission is a first submission by querying the database. That's no longer necessary, so this entire branch needs to be replaced with return Err(DemonlistError::RawRequiredForFirstTime) https://github.com/stadust/pointercrate/blob/bc5db82d9ca90f2e1d47a05e12e224f4a0270373/pointercrate-demonlist/src/record/post.rs#L154-L166
  2. This enum variant should be renamed to something like RawRequired, and the accompanying format message has to be changed (since that message is the error message the user will be see) https://github.com/stadust/pointercrate/blob/bc5db82d9ca90f2e1d47a05e12e224f4a0270373/pointercrate-demonlist/src/error.rs#L181-L185

Thanks!