Shun Miyazawa 2 лет назад
Родитель
Сommit
06e0145a06
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      apps/app/src/server/models/user.js

+ 0 - 10
apps/app/src/server/models/user.js

@@ -702,16 +702,6 @@ module.exports = function(crowi) {
     });
   };
 
-  userSchema.statics.getUsernameByPath = function(path) {
-    let username = null;
-    const match = path.match(/^\/user\/([^/]+)\/?/);
-    if (match) {
-      username = match[1];
-    }
-
-    return username;
-  };
-
   userSchema.statics.isExistUserByUserPagePath = async function(path) {
     const username = pagePathUtils.getUsernameByPath(path);