Vulcan/client/views/posts/modules/post_author.js

12 lines
346 B
JavaScript
Raw Normal View History

Template[getTemplate('postAuthor')].helpers({
authorName: function(){
return getAuthorName(this);
},
profileUrl: function(){
// note: we don't want the post to be re-rendered every time user properties change
var user = Meteor.users.findOne(this.userId, {reactive: false});
if(user)
return getProfileUrl(user);
}
})