浏览代码

Add minimum thread title length

sbkwgh 6 年之前
父节点
当前提交
1946d0876a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      models/thread.js

+ 2 - 2
models/thread.js

@@ -22,8 +22,8 @@ module.exports = (sequelize, DataTypes) => {
 					msg: 'The title cannot be empty'
 				},
 				len: {
-					args: [0, 256],
-					msg: 'The title can only be up to 256 characters'
+					args: [4, 256],
+					msg: 'The title must be between 4 and 256 characters'
 				},
 				isString (val) {
 					if(typeof val !== 'string') {