2016-02-17 21:57:07 +09:00
|
|
|
Telescope.notifications = Object.assign(Telescope.notifications, {
|
|
|
|
newComment: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Comments.getNotificationProperties(data.comment, data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return properties.authorName+' left a new comment on your post "' + properties.postTitle + '"';
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "newComment"
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
newReply: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Comments.getNotificationProperties(data.comment, data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return properties.authorName+' replied to your comment on "'+properties.postTitle+'"';
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "newReply"
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
newCommentSubscribed: {
|
2016-04-01 12:38:50 +09:00
|
|
|
properties(data) {
|
|
|
|
return Comments.getNotificationProperties(data.comment, data.post);
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
subject(properties) {
|
|
|
|
return properties.authorName+' left a new comment on "' + properties.postTitle + '"';
|
2016-02-17 21:57:07 +09:00
|
|
|
},
|
2016-04-01 12:38:50 +09:00
|
|
|
emailTemplate: "newComment"
|
2016-02-17 21:57:07 +09:00
|
|
|
}
|
|
|
|
});
|