yusuketk %!s(int64=6) %!d(string=hai) anos
pai
achega
6464579e29
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      src/server/models/user.js
  2. 1 1
      src/server/routes/page.js

+ 1 - 0
src/server/models/user.js

@@ -19,6 +19,7 @@ module.exports = function(crowi) {
   const STATUS_INVITED = 5;
   const STATUS_INVITED = 5;
   const USER_PUBLIC_FIELDS = '_id image isEmailPublished isGravatarEnabled googleId name username email introduction'
   const USER_PUBLIC_FIELDS = '_id image isEmailPublished isGravatarEnabled googleId name username email introduction'
   + 'status lang createdAt lastLoginAt admin imageUrlCached';
   + 'status lang createdAt lastLoginAt admin imageUrlCached';
+  /* eslint-disable no-unused-vars */
   const IMAGE_POPULATION = { path: 'imageAttachment', select: 'filePathProxied' };
   const IMAGE_POPULATION = { path: 'imageAttachment', select: 'filePathProxied' };
 
 
   const LANG_EN = 'en';
   const LANG_EN = 'en';

+ 1 - 1
src/server/routes/page.js

@@ -266,7 +266,7 @@ module.exports = function(crowi, app) {
 
 
   async function addRenderVarsForUserPage(renderVars, page, requestUser) {
   async function addRenderVarsForUserPage(renderVars, page, requestUser) {
     // [TODO][user-profile-cache] change how to get profile image data in client side.
     // [TODO][user-profile-cache] change how to get profile image data in client side.
-    const userData = await User.findUserByUsername(User.getUsernameByPath(page.path))
+    const userData = await User.findUserByUsername(User.getUsernameByPath(page.path));
 
 
     if (userData != null) {
     if (userData != null) {
       renderVars.pageUser = userData;
       renderVars.pageUser = userData;