Skip to content

Instantly share code, notes, and snippets.

@SachaG
Created May 13, 2015 00:30
Show Gist options
  • Save SachaG/66f0ae17befefda2eee4 to your computer and use it in GitHub Desktop.
Save SachaG/66f0ae17befefda2eee4 to your computer and use it in GitHub Desktop.
Users.getDisplayName = function (user) {
console.log(user)
console.log(this)
return (user.telescope && user.telescope.displayName) ? user.telescope.displayName : Users.getUserName(user);
};
Users.helpers({
getDisplayName: function () {
return Users.getDisplayName(this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment