mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
27 lines
No EOL
667 B
JavaScript
27 lines
No EOL
667 B
JavaScript
import PublicationsUtils from 'meteor/utilities:smart-publications';
|
|
|
|
Comments.publishedFields = {};
|
|
|
|
/**
|
|
* Specify which fields should be published by the posts.list publication
|
|
* @array Posts.publishedFields.list
|
|
*/
|
|
Comments.publishedFields.list = PublicationsUtils.arrayToFields([
|
|
"_id",
|
|
"parentCommentId",
|
|
"topLevelCommentId",
|
|
"postedAt",
|
|
"body",
|
|
"htmlBody",
|
|
"author",
|
|
"inactive",
|
|
"postId",
|
|
"userId",
|
|
"isDeleted"
|
|
]);
|
|
|
|
/**
|
|
* Specify which fields should be published by the posts.single publication
|
|
* @array Posts.publishedFields.single
|
|
*/
|
|
Comments.publishedFields.single = PublicationsUtils.arrayToFields(Comments.getPublishedFields()); |