Vulcan/packages/nova-comments/lib/notifications.js

31 lines
No EOL
934 B
JavaScript

Telescope.notifications = Object.assign(Telescope.notifications, {
newComment: {
properties(data) {
return Comments.getNotificationProperties(data.comment, data.post);
},
subject(properties) {
return properties.authorName+' left a new comment on your post "' + properties.postTitle + '"';
},
emailTemplate: "newComment"
},
newReply: {
properties(data) {
return Comments.getNotificationProperties(data.comment, data.post);
},
subject(properties) {
return properties.authorName+' replied to your comment on "'+properties.postTitle+'"';
},
emailTemplate: "newReply"
},
newCommentSubscribed: {
properties(data) {
return Comments.getNotificationProperties(data.comment, data.post);
},
subject(properties) {
return properties.authorName+' left a new comment on "' + properties.postTitle + '"';
},
emailTemplate: "newComment"
}
});