Merge branch 'revoltchat:master' into patch-1

This commit is contained in:
Marie
2021-09-18 21:15:49 +02:00
committed by GitHub
5 changed files with 60 additions and 78 deletions

View File

@@ -35,7 +35,7 @@ lazy_static! {
}
#[post("/<target>/messages", data = "<message>")]
pub async fn message_send(_r: Ratelimiter, user: User, target: Ref, message: Json<Data>) -> Result<RatelimitResponse<Value>> {
pub async fn message_send(user: User, _r: Ratelimiter, target: Ref, message: Json<Data>) -> Result<RatelimitResponse<Value>> {
let message = message.into_inner();
message
.validate()