Преглед изворни кода

Fix: ensure that APIs for comments return with user.isGravatarEnabled field

Yuki Takei пре 9 година
родитељ
комит
692408d2b1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/models/comment.js

+ 1 - 1
lib/models/comment.js

@@ -2,7 +2,7 @@ module.exports = function(crowi) {
   var debug = require('debug')('crowi:models:comment')
   var debug = require('debug')('crowi:models:comment')
     , mongoose = require('mongoose')
     , mongoose = require('mongoose')
     , ObjectId = mongoose.Schema.Types.ObjectId
     , ObjectId = mongoose.Schema.Types.ObjectId
-    , USER_PUBLIC_FIELDS = '_id image googleId name username email status createdAt' // TODO: どこか別の場所へ...
+    , USER_PUBLIC_FIELDS = '_id image isGravatarEnabled googleId name username email status createdAt' // TODO: どこか別の場所へ...
     , commentSchema
     , commentSchema
   ;
   ;