aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-25 10:57:51 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-03-28 13:55:36 -0400
commit4ee97dfaa67cc8ab77bbac574f0d05c6d60f4e37 (patch)
tree7e85d67e0e97c51f5b3d6bfa80b81ee7d61d4b56 /lib/serve.js
parent646e70a38f1daae390271c3ad65c4b6c0d87de5f (diff)
downloadpatchfoo-4ee97dfaa67cc8ab77bbac574f0d05c6d60f4e37.tar.gz
patchfoo-4ee97dfaa67cc8ab77bbac574f0d05c6d60f4e37.zip
Render descriptions as diffs in gathering threads
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index e593f64..c35d4c9 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1927,6 +1927,7 @@ Serve.prototype.streamThreadWithComposer = function (opts) {
self.renderThread({
msgId: id,
branches: branches,
+ links: links,
}),
self.wrapMessages(),
self.wrapThread({
@@ -1950,7 +1951,8 @@ Serve.prototype.streamMsg = function (id) {
return pull(
self.app.pullGetMsg(id),
self.renderThread({
- msgId: id
+ msgId: id,
+ single: self.query.single != null
}),
self.wrapMessages()
)
@@ -2236,6 +2238,8 @@ Serve.prototype.renderThread = function (opts) {
filter: this.query.filter,
limit: Number(this.query.limit),
serve: this,
+ links: opts && opts.links,
+ single: opts && opts.single,
branches: opts && opts.branches,
}),
pull.map(u.toHTML)