From 9a33ef5a88fd1dae3dd95d5857d0f77e66333216 Mon Sep 17 00:00:00 2001 From: hole-thu Date: Thu, 2 Jun 2022 23:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E4=B8=BE=E6=8A=A5=E6=A0=87?= =?UTF-8?q?=E5=87=86=E6=94=B9=E4=B8=BA10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/operation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/operation.rs b/src/api/operation.rs index 8d0203c..f95c66b 100644 --- a/src/api/operation.rs +++ b/src/api/operation.rs @@ -91,11 +91,11 @@ pub async fn report(ri: Form, user: CurrentUser, db: Db, rconn: Rds // 临时用户不允许举报 user.id.ok_or(NotAllowed)?; - // 被拉黑30次不允许举报 + // 被拉黑10次不允许举报 (BlockCounter::get_count(&rconn, &user.namehash) .await? .unwrap_or(0) - < 30) + < 10) .then(|| ()) .ok_or(NotAllowed)?;