aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 12:32:58 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 12:33:17 -1000
commit5299f99daca8d6d71597eb1f8b6d4115d76bfa2a (patch)
tree2c3a9ec7e1b6e2cf5d3553160860b6fca5b40d41
parentb39ddc54907e7484ac5ea895d4d074e38200ff3a (diff)
downloadpatchfoo-5299f99daca8d6d71597eb1f8b6d4115d76bfa2a.tar.gz
patchfoo-5299f99daca8d6d71597eb1f8b6d4115d76bfa2a.zip
Pass through filter parameter
-rw-r--r--lib/serve.js6
1 files changed, 6 insertions, 0 deletions
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,
}))
}
}