From 5299f99daca8d6d71597eb1f8b6d4115d76bfa2a Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 17 Oct 2017 12:32:58 -1000 Subject: Pass through filter parameter --- lib/serve.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index eab40c9..56fddef 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1274,12 +1274,14 @@ Serve.prototype.renderThreadPaginated = function (opts, feedId, q) { lt: num, gt: null, forwards: null, + filter: opts.filter, })) } else { cb(null, links({ lt: null, gt: num, forwards: 1, + filter: opts.filter, })) } }, @@ -1293,12 +1295,14 @@ Serve.prototype.renderThreadPaginated = function (opts, feedId, q) { lt: null, gt: num, forwards: 1, + filter: opts.filter, })) } else { cb(null, links({ lt: num, gt: null, forwards: null, + filter: opts.filter, })) } }, @@ -1308,12 +1312,14 @@ Serve.prototype.renderThreadPaginated = function (opts, feedId, q) { gt: null, lt: opts.gt + 1, forwards: null, + filter: opts.filter, })) } else { cb(null, links({ gt: opts.lt - 1, lt: null, forwards: 1, + filter: opts.filter, })) } } -- cgit v1.2.3