mirror of https://github.com/LemmyNet/lemmy.git
Making websocket create community do register rate limit.
parent
05b961a90a
commit
0d4679a37b
|
@ -905,7 +905,7 @@ where
|
|||
match op2 {
|
||||
UserOperation::Register => rate_limiter.register().wrap(ip, fut).await,
|
||||
UserOperation::CreatePost => rate_limiter.post().wrap(ip, fut).await,
|
||||
UserOperation::CreateCommunity => rate_limiter.post().wrap(ip, fut).await,
|
||||
UserOperation::CreateCommunity => rate_limiter.register().wrap(ip, fut).await,
|
||||
_ => rate_limiter.message().wrap(ip, fut).await,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue