From 4412c41349e8aefe8a3df0aaef7ca3af4f2cfbb2 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 8 Feb 2021 18:25:27 -0500 Subject: replacing magic word with variable --- lib/serve.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index dfb68e2..26637dc 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -591,12 +591,14 @@ Serve.prototype.logbook2 = function (ext) { filter: q.filter, } - channels.getMessages(this.app.sbot, "logbook", opts, this, function(messageStream, serve) { + var channelAndTag = "logbook" + + channels.getMessages(this.app.sbot, channelAndTag, opts, this, function(messageStream, serve) { pull(messageStream, serve.renderThreadPaginated(opts, null, q), serve.wrapMessages(), - serve.wrapPublic(), - serve.wrapPage('logbook'), + serve.wrapChannel(channelAndTag), + serve.wrapPage(channelAndTag), serve.respondSink(200, { 'Content-Type': ctype(ext) }) -- cgit v1.2.3