Created
March 8, 2016 13:09
-
-
Save xavxyz/26fe727c9b069ffa5252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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