Kaynağa Gözat

remove comment use UserPicture

yusuketk 6 yıl önce
ebeveyn
işleme
6cb75f16d1

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

@@ -87,7 +87,6 @@ class UserGroupRelation {
   static findAllRelationForUserGroup(userGroup) {
     const User = UserGroupRelation.crowi.model('User');
     debug('findAllRelationForUserGroup is called', userGroup);
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
     return this
       .find({ relatedGroup: userGroup })
       .populate({

+ 0 - 1
src/server/routes/apiv3/user-group.js

@@ -577,7 +577,6 @@ module.exports = (crowi) => {
     const { id } = req.params;
     const { limit, offset } = req.query;
 
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
     try {
       const { docs, total } = await Page.paginate({
         grant: Page.GRANT_USER_GROUP,

+ 0 - 1
src/server/routes/apiv3/users.js

@@ -167,7 +167,6 @@ module.exports = (crowi) => {
     };
 
     try {
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
       const paginateResult = await User.paginate(
         {
           $and: [

+ 0 - 1
src/server/routes/attachment.js

@@ -352,7 +352,6 @@ module.exports = function(crowi, app) {
       return res.json(ApiResponse.error('Parameters page_id is required.'));
     }
 
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
     let attachments = await Attachment.find({ page: id })
       .sort({ updatedAt: 1 })
       .populate({ path: 'creator', select: User.USER_PUBLIC_FIELDS });

+ 0 - 1
src/server/routes/comment.js

@@ -127,7 +127,6 @@ module.exports = function(crowi, app) {
       return res.json(ApiResponse.error(err));
     }
 
-    // [TODO][user-profile-cache][GW-1775] change how to get profile image data in client side.
     const comments = await fetcher.populate(
       { path: 'creator', select: User.USER_PUBLIC_FIELDS },
     );

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

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