From 522077ca50af03a37cc26c8d1cdf2852bc9bf93b Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Mon, 7 Feb 2022 13:08:43 +0000 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4realname=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/user/profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user/profile.js b/src/user/profile.js index 2748690b81..69c73eb729 100644 --- a/src/user/profile.js +++ b/src/user/profile.js @@ -178,13 +178,13 @@ module.exports = function (User) { } function isFullnameValid(data) { - if (data.fullname && (validator.isURL(data.fullname) || data.fullname.length > 255)) { + if (data.fullname && data.fullname.length > 255) { throw new Error('[[error:invalid-fullname]]'); } } function isLocationValid(data) { - if (data.location && (validator.isURL(data.location) || data.location.length > 255)) { + if (data.location && data.location.length > 255) { throw new Error('[[error:invalid-location]]'); } }