Skip to content

Commit

Permalink
Include comment text as activity event body.
Browse files Browse the repository at this point in the history
  • Loading branch information
kentonv committed Sep 19, 2016
1 parent c8f6ce8 commit 5f67d77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ exports.addComment = function(padId, sessionId, data, callback)
if(commentIds && commentIds.length > 0 && comments && comments.length > 0) {
// SANDSTORM EDIT
var path = "#comment/" + commentIds[0];
sandstorm.activity(sessionId, "comment", path, path, "comment: " + commentIds[0]);
sandstorm.activity(sessionId, "comment", path, path, "comment: " + commentIds[0],
comments[0].text);
// END SANDSTORM EDIT

callback(null, commentIds[0], comments[0]);
Expand Down Expand Up @@ -116,7 +117,8 @@ exports.addCommentReply = function(padId, sessionId, data, callback){
if(replyIds && replyIds.length > 0 && replies && replies.length > 0) {
// SANDSTORM EDIT
var path = "#comment/" + data.commentId;
sandstorm.activity(sessionId, "reply", path, path, "comment: " + data.commentId);
sandstorm.activity(sessionId, "reply", path, path, "comment: " + data.commentId,
replies[0].text);
// END SANDSTORM EDIT

callback(null, replyIds[0], replies[0]);
Expand Down

0 comments on commit 5f67d77

Please sign in to comment.