Skip to content

Commit

Permalink
fix: fix #2218
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Feb 14, 2024
1 parent 128bdc1 commit 2dfff0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/server/src/logic/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,17 @@ module.exports = class extends Base {
const { LOGIN } = process.env;
const { userInfo } = this.ctx.state;

this.rules = {
url: {
string: true,
required: true,
},
comment: {
string: true,
required: true,
},
};

if (!think.isEmpty(userInfo)) {
return;
}
Expand Down

0 comments on commit 2dfff0d

Please sign in to comment.