mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
24 lines
595 B
JavaScript
24 lines
595 B
JavaScript
![]() |
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",
|
||
|
"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());
|