aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 22:21:23 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-01-09 22:21:23 -1000
commitf34f08104b9613ba5f0ac43eb229ae992116224a (patch)
treea975ffba364a5d347f4f4dbc2ad3228a177f2b77 /lib
parentf0426f5208e1a3ca3264f7940e4d4edaf072d3fa (diff)
downloadpatchfoo-f34f08104b9613ba5f0ac43eb229ae992116224a.tar.gz
patchfoo-f34f08104b9613ba5f0ac43eb229ae992116224a.zip
Include git blob id in new line-comments, for good measure
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js3
1 files changed, 3 insertions, 0 deletions
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})