From 3b8efc0c0bfe23e032f85556cb89e4b4da72acf6 Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sun, 16 Oct 2022 02:32:13 +0800 Subject: [PATCH] fix: not use title for report --- src/api/operation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/operation.rs b/src/api/operation.rs index 853a299..8772106 100644 --- a/src/api/operation.rs +++ b/src/api/operation.rs @@ -117,7 +117,7 @@ pub async fn report(ri: Form, user: CurrentUser, db: Db, rconn: Rds } Systemlog { - user_hash: user.custom_title.unwrap_or(look!(user.namehash)), + user_hash: look!(user.namehash), action_type: LogType::Report, target: format!("#{}", ri.pid), detail: ri.reason.clone(),