mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
29 lines
No EOL
764 B
JavaScript
29 lines
No EOL
764 B
JavaScript
import Comments from './collection.js';
|
|
import PublicationsUtils from 'meteor/utilities:smart-publications';
|
|
import Posts from "meteor/nova:posts";
|
|
|
|
Comments.publishedFields = {};
|
|
|
|
/**
|
|
* @summary 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"
|
|
]);
|
|
|
|
/**
|
|
* @summary Specify which fields should be published by the posts.single publication
|
|
* @array Posts.publishedFields.single
|
|
*/
|
|
Comments.publishedFields.single = PublicationsUtils.arrayToFields(Comments.getPublishedFields()); |