send_message was expecting the wrong parameters

This commit is contained in:
shockrah 2020-08-08 21:31:07 -07:00
parent 47cc48575d
commit 776ceb83c9

View File

@ -43,7 +43,7 @@ pub async fn send_message(pool: &Pool, response: &mut Response<Body>, params: Va
let content_r = params.get("content");
let channel_name_r = params.get("channel");
// auth module guarantees this will be there in the correct form
let author = params.get("userid")
let author = params.get("id")
.unwrap().as_u64().unwrap();
match (content_r, channel_name_r) {