From 212c8857db77c29247b6b2586f577bade48d4cb0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 8 Feb 2021 18:19:42 -0500 Subject: commented code removed --- lib/serve.js | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index fbf8d80..dfb68e2 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -600,37 +600,11 @@ Serve.prototype.logbook2 = function (ext) { serve.respondSink(200, { 'Content-Type': ctype(ext) }) - //pull.drain(function(msg) { - //console.log(JSON.stringify(msg)); - //}) ) } , hops=3) - - //this.renderThreadPaginated(opts, null, q), - //this.wrapMessages(), - //this.wrapPublic(), - //this.wrapPage('public'), - //this.respondSink(200, { - //'Content-Type': ctype(ext) - //}) - //) - //}); - - //pull( - //this.app.createLogStream(opts), - //pull.filter(msg => { - //return !msg.value.content.vote - //}), - //this.renderThreadPaginated(opts, null, q), - //this.wrapMessages(), - //this.wrapPublic(), - //this.wrapPage('public'), - //this.respondSink(200, { - //'Content-Type': ctype(ext) - //}) - //) } + compareMsgs = function(a, b) { return -(a.value.timestamp - b.value.timestamp) } -- cgit v1.2.3