Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit publishing to newest #509

Merged
merged 5 commits into from
Jul 17, 2018
Merged

Limit publishing to newest #509

merged 5 commits into from
Jul 17, 2018

Conversation

bls1999
Copy link
Collaborator

@bls1999 bls1999 commented Jul 3, 2018

We've had an issue in the past with level spam. As a fix, Stxtics suggested that there be a limit to the number of levels that a user can publish to page 1 of newest at any given time. This pull adds that limit while still letting the user save their level.

Side note: I noticed that when a level gets unpublished, the level remains in pr2_new_levels. To make this pull work, I needed to count the number of levels from that table. I've added a function to upload_level.php and remove_level.php which delete the level from pr2_new_levels if it exists in that table.

Checks page 1 of newest for 3 or more recent levels from this account or ip
Deletes a level from newest (used in upload_level.php)
👏 worry 👏 about 👏 important 👏 things
@jacob-grahn
Copy link
Owner

👍

@jacob-grahn jacob-grahn merged commit a208df7 into jacob-grahn:master Jul 17, 2018
@bls1999 bls1999 deleted the patch-3 branch July 17, 2018 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants