mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
13 lines
No EOL
482 B
JavaScript
13 lines
No EOL
482 B
JavaScript
Comments.getNotificationProperties = function (comment) {
|
|
var commentAuthor = Meteor.users.findOne(comment.userId);
|
|
var post = Posts.findOne(comment.postId);
|
|
var properties = {
|
|
profileUrl: commentAuthor && commentAuthor.getProfileUrl(true),
|
|
postUrl: Posts.getPageUrl(post, true),
|
|
authorName : Comments.getAuthorName(comment),
|
|
postTitle: post.title,
|
|
htmlBody: comment.htmlBody,
|
|
commentUrl: Comments.getPageUrl(comment, true)
|
|
};
|
|
return properties;
|
|
}; |