mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
29 lines
578 B
JavaScript
29 lines
578 B
JavaScript
![]() |
Posts.publicationFields = {};
|
||
|
|
||
|
/**
|
||
|
* Specify which fields should be published by the posts.list publication
|
||
|
* @array Posts.publicationFields.list
|
||
|
*/
|
||
|
Posts.publicationFields.list = [
|
||
|
"_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.publicationFields.single
|
||
|
*/
|
||
|
Posts.publicationFields.single = Posts.simpleSchema().getPublicFields();
|