Răsfoiți Sursa

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

Yuki Takei 8 ani în urmă
părinte
comite
692408d2b1
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
   ;
   ;