Skip to content

Instantly share code, notes, and snippets.

View xavxyz's full-sized avatar
๐ŸŽ‹
growing flex

Xavier Cazalot xavxyz

๐ŸŽ‹
growing flex
View GitHub Profile
module.exports = {
servers: {
one: {
host: '1.2.3.4', // your server ip
username: 'root',
// pem: 'absolute/path/to/ssh/key',
// password:
// or leave blank for authenticate from ssh-agent
}
},

This is a starter issue, highly inspired by the great job of the folks at Hoodie. ๐Ÿ‘

๐ŸŽƒ๐Ÿ™€๐Ÿ‘•๐Ÿ”ญ๐Ÿ˜ป Hacktoberfest: Trick or Treat!

If you havenโ€™t yet, sign up for Hacktoberfest to earn an exclusive T-Shirt.

We are sure you can learn a cool trick or two in the process on how to hack & customize Telescope Nova! ๐Ÿ”ญ

๐Ÿค” What you will need to know

import Posts from '../collection.js';
import moment from 'moment';
SyncedCron.options = {
log: true,
collectionName: 'cronHistory',
utc: false,
collectionTTL: 172800
};
// Decouple updating the settings and adding the user to the mailchimplist in case of telescope settings autoSuscribe = true
// nova-newsletter/lib/callbacks.js
function updateUserNewsletterSettings (user, options) {
if (!!Telescope.settings.get('autoSubscribe') && !!user) {
user.telescope.newsletter_subscribeToNewsletter = true;
}
return user;
}
Telescope.callbacks.add("onCreateUser", updateUserNewsletterSettings);
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)
};