2016-02-17 12:54:18 +09:00
|
|
|
Comments.publishedFields = {};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Specify which fields should be published by the posts.list publication
|
|
|
|
* @array Posts.publishedFields.list
|
|
|
|
*/
|
|
|
|
Comments.publishedFields.list = Telescope.utils.arrayToFields([
|
|
|
|
"_id",
|
|
|
|
"parentCommentId",
|
|
|
|
"topLevelCommentId",
|
|
|
|
"postedAt",
|
2016-02-18 21:39:33 +09:00
|
|
|
"body",
|
2016-02-17 12:54:18 +09:00
|
|
|
"htmlBody",
|
|
|
|
"author",
|
|
|
|
"inactive",
|
|
|
|
"postId",
|
|
|
|
"userId",
|
|
|
|
"isDeleted"
|
|
|
|
]);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Specify which fields should be published by the posts.single publication
|
|
|
|
* @array Posts.publishedFields.single
|
|
|
|
*/
|
|
|
|
Comments.publishedFields.single = Telescope.utils.arrayToFields(Comments.simpleSchema().getPublicFields());
|