From a1f0842de10d21b04b8adb1340616c2ef91fcfec Mon Sep 17 00:00:00 2001 From: boomzero Date: Sat, 7 Sep 2024 17:12:39 +0800 Subject: [PATCH] admins are always powerful --- Source/Process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Process.ts b/Source/Process.ts index 93ffb81..54d39a2 100644 --- a/Source/Process.ts +++ b/Source/Process.ts @@ -402,7 +402,7 @@ export class Process { } } MentionPeople = Array.from(new Set(MentionPeople)); - if (MentionPeople.length > 3) { + if (MentionPeople.length > 3 && !this.IsAdmin()) { return new Result(false, "一次最多@3个人"); } const ReplyID = ThrowErrorIfFailed(await this.XMOJDatabase.Insert("bbs_reply", {