Skip to content

Instantly share code, notes, and snippets.

@xavxyz
Created March 8, 2016 13:09
Show Gist options
  • Save xavxyz/26fe727c9b069ffa5252 to your computer and use it in GitHub Desktop.
Save xavxyz/26fe727c9b069ffa5252 to your computer and use it in GitHub Desktop.
var communityName = Settings.get('title','Telescope'),
emailSubject = 'You are invited to try '+communityName,
route = user ? Telescope.utils.getSigninUrl() : Telescope.utils.getSignupUrl(), // this the line I added
emailProperties = {
newUser : typeof user === 'undefined',
communityName : communityName,
actionLink : Telescope.utils.getSiteUrl() + route, // site url + route depending if the user already have an account or not
invitedBy : Users.getDisplayName(currentUser),
profileUrl : Users.getProfileUrl(currentUser)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment