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

feat: merge suspensions into bans #246

Merged
merged 12 commits into from
Apr 12, 2021
Merged

Conversation

guidojw
Copy link
Owner

@guidojw guidojw commented Apr 12, 2021

This PR merges the suspensions system into the ban system. Bans can now have a duration (null means they're permanent) and can be extended by using the extend route. Only non permanent bans can be extended and tempbans can have a length of up to 7 days.

Resolves #239

@guidojw guidojw added the enhancement New feature or request label Apr 12, 2021
@guidojw guidojw marked this pull request as ready for review April 12, 2021 11:33
@guidojw
Copy link
Owner Author

guidojw commented Apr 12, 2021

Due to an incorrect migration in #170, the user ID columns were made nullable. In this PR I originally made the user IDs not nullable in the down method but reverted that in 7085c0e, will open a PR to fix that later.

@guidojw guidojw merged commit eb887ab into staging Apr 12, 2021
@guidojw guidojw deleted the feature/suspensions-to-tempbans branch April 12, 2021 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge suspensions into bans
1 participant