mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
12 lines
346 B
JavaScript
12 lines
346 B
JavaScript
![]() |
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);
|
||
|
}
|
||
|
})
|