mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
39 lines
No EOL
1.2 KiB
JavaScript
39 lines
No EOL
1.2 KiB
JavaScript
Users.publishedFields = {};
|
|
|
|
/**
|
|
* Specify which fields should be public
|
|
* @type {Array}
|
|
*/
|
|
Users.publishedFields.public = Telescope.utils.arrayToFields([
|
|
...Users.simpleSchema().getPublicFields(),
|
|
'services.twitter.profile_image_url',
|
|
'services.twitter.profile_image_url_https',
|
|
'services.facebook.id',
|
|
'services.twitter.screenName'
|
|
]);
|
|
|
|
/**
|
|
* Minimum required properties to display avatars and display names
|
|
* @type {Array}
|
|
*/
|
|
// Users.publishedFields.list = Telescope.utils.arrayToFields([
|
|
// '_id',
|
|
// 'telescope.emailHash',
|
|
// 'telescope.slug',
|
|
// 'telescope.displayName',
|
|
// 'username',
|
|
// 'profile.username',
|
|
// 'profile.github',
|
|
// 'profile.twitter',
|
|
// 'services.twitter.profile_image_url',
|
|
// 'services.twitter.profile_image_url_https',
|
|
// 'services.facebook.id',
|
|
// 'services.twitter.screenName',
|
|
// 'services.github.screenName', // Github is not really used, but there are some mentions to it in the code
|
|
// ]);
|
|
|
|
// note: to work around nested fields subscription bug, we'll publish
|
|
// all public user properties at all times for now
|
|
// see https://github.com/meteor/meteor/issues/998
|
|
|
|
Users.publishedFields.list = Users.publishedFields.public; |