aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-08 18:25:27 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-08 18:25:27 -0500
commit4412c41349e8aefe8a3df0aaef7ca3af4f2cfbb2 (patch)
tree2f36bd3875570e29c925bc6fc4ca0cd512a192fc /lib
parent212c8857db77c29247b6b2586f577bade48d4cb0 (diff)
downloadpatchfoo-4412c41349e8aefe8a3df0aaef7ca3af4f2cfbb2.tar.gz
patchfoo-4412c41349e8aefe8a3df0aaef7ca3af4f2cfbb2.zip
replacing magic word with variable
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js8
1 files 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)
})