mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 03:01:32 +03:00
Modified rate limit conditions to exclude moderators (#3534)
This commit is contained in:
parent
8abddf5ced
commit
b532b1545c
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ func (c *Client) close() {
|
|||
}
|
||||
|
||||
func (c *Client) passesRateLimit() bool {
|
||||
return c.rateLimiter.Allow() && !c.inTimeout
|
||||
return c.User.IsModerator() || (c.rateLimiter.Allow() && !c.inTimeout)
|
||||
}
|
||||
|
||||
func (c *Client) startChatRejectionTimeout() {
|
||||
|
|
Loading…
Reference in a new issue