aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 5b49983..39c1138 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1442,11 +1442,24 @@ Serve.prototype.streamThreadWithComposer = function (opts) {
}
}
+Serve.prototype.streamMsg = function (id) {
+ var self = this
+ return pull(
+ self.app.pullGetMsg(id),
+ self.renderThread({
+ msgId: id
+ }),
+ self.wrapMessages()
+ )
+}
+
Serve.prototype.id = function (id, path) {
var self = this
if (self.query.raw != null) return self.rawId(id)
pull(
- self.streamThreadWithComposer({root: id}),
+ self.query.single != null
+ ? self.streamMsg(id)
+ : self.streamThreadWithComposer({root: id}),
self.wrapPage(id),
self.respondSink(200)
)