Skip to content

Commit

Permalink
feat: 一次最多@3个人
Browse files Browse the repository at this point in the history
  • Loading branch information
boomzero committed Sep 7, 2024
1 parent 7318593 commit 97bc5c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ export class Process {
}
}
MentionPeople = Array.from(new Set(MentionPeople));
if (MentionPeople.length > 3) {
return new Result(false, "一次最多@3个人");
}
const ReplyID = ThrowErrorIfFailed(await this.XMOJDatabase.Insert("bbs_reply", {
user_id: this.Username,
post_id: Data["PostID"],
Expand Down

0 comments on commit 97bc5c3

Please sign in to comment.