]> Untitled Git - lemmy.git/commitdiff
Making websocket create community do register rate limit.
authorDessalines <tyhou13@gmx.com>
Mon, 20 Apr 2020 18:55:37 +0000 (14:55 -0400)
committerDessalines <tyhou13@gmx.com>
Mon, 20 Apr 2020 18:55:37 +0000 (14:55 -0400)
server/src/websocket/server.rs

index cd78bbc7f875df9abc1e76e1e8ad3ec2807d7942..0e7c1a4af60e65f486ef6a1a9ca6958f1f37bea5 100644 (file)
@@ -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,
   }
 }