change how webhook information is in the webhook

This commit is contained in:
Zomatree
2023-04-01 22:49:34 +01:00
parent 01577fd798
commit 7b39f4e9d9
15 changed files with 31 additions and 33 deletions

View File

@@ -42,7 +42,7 @@ pub async fn report_content(db: &Db, user: User, data: Json<DataReportContent>)
let message = db.fetch_message(id).await?;
// Users cannot report themselves
if message.author.as_ref() == Some(&user.id) {
if message.author == user.id {
return Err(Error::CannotReportYourself);
}