From 0d4679a37ba051561389b236e64e00c6be3569f3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 20 Apr 2020 14:55:37 -0400 Subject: [PATCH] Making websocket create community do register rate limit. --- server/src/websocket/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/websocket/server.rs b/server/src/websocket/server.rs index cd78bbc7f..0e7c1a4af 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, } }