2016-02-17 21:57:07 +09:00
|
|
|
Telescope.notifications = Object.assign(Telescope.notifications, {
|
|
|
|
newPost: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Posts.getNotificationProperties(data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return properties.postAuthorName+' has created a new post: '+properties.postTitle;
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "newPost"
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
newPendingPost: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Posts.getNotificationProperties(data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return properties.postAuthorName+' has a new post pending approval: '+properties.postTitle;
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "newPendingPost"
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
postApproved: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Posts.getNotificationProperties(data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return 'Your post “'+properties.postTitle+'” has been approved';
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "postApproved"
|
2016-02-17 21:57:07 +09:00
|
|
|
}
|
2016-02-17 21:57:20 +09:00
|
|
|
});
|