How do we prevent a warning from lingering in the db forever if the user never opens the page?
This would require a much longer hidden timeout, after which the warning expires silently
How do we prevent a warning from lingering in the db forever if the user never opens the page?
This would require a much longer hidden timeout, after which the warning expires silently
Zankaria
changed title from [Feature Request] Add warning pseudo-ban to [Feature Request] Ban overhaul2 months ago
An immediate ban is how things work right now.
Dereferred bans and warnings trigger only when the offending IP first interacts with the site, and start counting from that point. To prevent them from lingering in the db forever, they should have a second hidden timeout after which they get triggered anyway, regardless of the user having visualized the ban or not.
Warnings and dereferred bans are basically the same thing, but differ by how long they last.
There is the proposal to just merge them and simply change the offending user UI if the ban time was bellow a certain quota.
This could probably simplify the implementation, but it would remove the mapping from user concepts to code.
We have 3 cases
- Immediate ban
- Dereferred ban
- Warning
An immediate ban is how things work right now.
Dereferred bans and warnings trigger only when the offending IP first interacts with the site, and start counting from that point. To prevent them from lingering in the db forever, they should have a second hidden timeout after which they get triggered anyway, regardless of the user having visualized the ban or not.
Warnings and dereferred bans are basically the same thing, but differ by how long they last.
There is the proposal to just merge them and simply change the offending user UI if the ban time was bellow a certain quota.
This could probably simplify the implementation, but it would remove the mapping from user concepts to code.
A warning would be a ban that automatically expires when first viewed.
How do we prevent a warning from lingering in the db forever if the user never opens the page?
This would require a much longer hidden timeout, after which the warning expires silently
[Feature Request] Add warning pseudo-banto [Feature Request] Ban overhaul 2 months agoWe have 3 cases
An immediate ban is how things work right now.
Dereferred bans and warnings trigger only when the offending IP first interacts with the site, and start counting from that point. To prevent them from lingering in the db forever, they should have a second hidden timeout after which they get triggered anyway, regardless of the user having visualized the ban or not.
Warnings and dereferred bans are basically the same thing, but differ by how long they last.
There is the proposal to just merge them and simply change the offending user UI if the ban time was bellow a certain quota.
This could probably simplify the implementation, but it would remove the mapping from user concepts to code.
Upstream vichan seems to a draft for the warning feature.
https://github.com/vichan-devel/vichan/pull/598
Need to look into it.
[Feature Request] Ban overhaulto Ban overhaul 3 days ago