Merge branch 'main' into fix_release_script

This commit is contained in:
Nutomic 2022-03-29 15:09:56 +00:00 committed by GitHub
commit 5994c8c904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -485,7 +485,7 @@ impl ChatServer {
UserOperationCrud::CreatePost => rate_limiter.post().check(ip),
UserOperationCrud::CreateCommunity => rate_limiter.register().check(ip),
UserOperationCrud::CreateComment => rate_limiter.comment().check(ip),
_ => rate_limiter.message().check(ip),
_ => true,
};
let fut = (message_handler_crud)(context, msg.id, user_operation_crud, data);
(passed, fut)
@ -493,7 +493,7 @@ impl ChatServer {
let user_operation = UserOperation::from_str(op)?;
let passed = match user_operation {
UserOperation::GetCaptcha => rate_limiter.post().check(ip),
_ => rate_limiter.message().check(ip),
_ => true,
};
let fut = (message_handler)(context, msg.id, user_operation, data);
(passed, fut)

View file

@ -1,5 +0,0 @@
# For documentation on how to configure this file,
# see diesel.rs/guides/configuring-diesel-cli
[print_schema]
file = "lemmy_db/src/schema.rs"