mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
29 lines
No EOL
630 B
JavaScript
29 lines
No EOL
630 B
JavaScript
Posts.publishedFields = {};
|
|
|
|
/**
|
|
* Specify which fields should be published by the posts.list publication
|
|
* @array Posts.publishedFields.list
|
|
*/
|
|
Posts.publishedFields.list = Telescope.utils.arrayToFields([
|
|
"_id",
|
|
"postedAt",
|
|
"url",
|
|
"title",
|
|
"slug",
|
|
"htmlBody",
|
|
"viewCount",
|
|
"lastCommentedAt",
|
|
"clickCount",
|
|
"baseScore",
|
|
"score",
|
|
"status",
|
|
"sticky",
|
|
"author",
|
|
"userId"
|
|
]);
|
|
|
|
/**
|
|
* Specify which fields should be published by the posts.single publication
|
|
* @array Posts.publishedFields.single
|
|
*/
|
|
Posts.publishedFields.single = Telescope.utils.arrayToFields(Posts.simpleSchema().getPublicFields()); |