From: Dessalines Date: Mon, 20 Apr 2020 18:55:37 +0000 (-0400) Subject: Making websocket create community do register rate limit. X-Git-Url: http://these/git/ui/assets/static/git-logo.png?a=commitdiff_plain;h=0d4679a37ba051561389b236e64e00c6be3569f3;p=lemmy.git Making websocket create community do register rate limit. --- diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index cd78bbc7..0e7c1a4a 100644 --- a/server/src/websocket/server.rs +++ b/server/src/websocket/server.rs @@ -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, } }