Added Fires page, collection and fire comments

This commit is contained in:
vjrj 2018-01-17 18:23:32 +01:00
parent 3bf21c8caf
commit 40aedbfdfb
19 changed files with 290 additions and 66 deletions

View file

@ -0,0 +1,16 @@
/* global Comments */
// Client and Server
Comments.config({
rating: 'likes-and-dislikes',
allowAnonymous: () => true,
anonymousSalt: 'klasddl3lala0l3lasdlas0ol3lasdlao3lasdoaslaldal3lasdclasdlal3lasdladlaq',
publishUserFields: {
profile: 1
},
generateUsername: function genUser(user) {
console.log(JSON.stringify(user));
// FIXME
return user.profile && user.profile.name && user.profile.name.first ? user.profile.name.first : '';
}
});