From f34f08104b9613ba5f0ac43eb229ae992116224a Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 9 Jan 2018 22:21:23 -1000 Subject: Include git blob id in new line-comments, for good measure --- lib/serve.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index e8a8c91..13d3fc5 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2231,6 +2231,7 @@ Serve.prototype.gitDiffTable = function (diff, lineComments, lineCommentInfo) { id: id, line: newLineNum, updateId: updateMsg.key, + blobId: hash, repoId: updateMsg.value.content.repo, commitId: lineCommentInfo.commit, filePath: lineCommentInfo.path, @@ -2717,6 +2718,7 @@ Serve.prototype.wrapBinary = function (opts) { updateId: updateMsg.key, repoId: updateMsg.value.content.repo, commitId: commitId, + blobId: hash, filePath: filePath, }) ) @@ -3113,6 +3115,7 @@ Serve.prototype.composer = function (opts, cb) { content.repo = opts.lineComment.repoId content.commitId = opts.lineComment.commitId content.filePath = opts.lineComment.filePath + content.blobId = opts.lineComment.blobId content.line = opts.lineComment.line } var mentions = ssbMentions(data.text, {bareFeedNames: true, emoji: true}) -- cgit v1.2.3