aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
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)