mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
[CORL-668] User Comment Rate Limiting (#2616)
* feat: added user comment rate limiting * fix: change 30 second to 3 second * fix: moved file * fix: services cleanup * fix: changes based on review
This commit is contained in:
@@ -53,6 +53,12 @@ export const ALLOWED_USERNAME_CHANGE_FREQUENCY = 14 * 86400;
|
||||
*/
|
||||
export const SCHEDULED_DELETION_TIMESPAN_DAYS = 14;
|
||||
|
||||
/**
|
||||
* COMMENT_LIMIT_WINDOW_SECONDS is the number of seconds that a user has to
|
||||
* wait in-between writing comments.
|
||||
*/
|
||||
export const COMMENT_LIMIT_WINDOW_SECONDS = 3;
|
||||
|
||||
/**
|
||||
* DEFAULT_SESSION_LENTTH is the length of time in seconds a session is valid for unless configured in tenant.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user