fix: not use title for report

This commit is contained in:
2022-10-16 02:32:13 +08:00
parent fcf6b33aa7
commit 3b8efc0c0b

View File

@@ -117,7 +117,7 @@ pub async fn report(ri: Form<ReportInput>, user: CurrentUser, db: Db, rconn: Rds
} }
Systemlog { Systemlog {
user_hash: user.custom_title.unwrap_or(look!(user.namehash)), user_hash: look!(user.namehash),
action_type: LogType::Report, action_type: LogType::Report,
target: format!("#{}", ri.pid), target: format!("#{}", ri.pid),
detail: ri.reason.clone(), detail: ri.reason.clone(),