aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js
index a7b05aa..5b49983 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -533,6 +533,7 @@ Serve.prototype.public = function (ext) {
Serve.prototype.threads = function (ext) {
var q = this.query
var opts = {
+ type: 'post',
reverse: !q.forwards,
sortByTimestamp: q.sort === 'claimed',
lt: Number(q.lt) || Date.now(),
@@ -541,9 +542,9 @@ Serve.prototype.threads = function (ext) {
}
pull(
- this.app.createLogStream(opts),
+ this.app.sbotMessagesByType(opts),
pull.filter(msg => {
- return msg.value.content.type === 'post' && !msg.value.content.root
+ return !msg.value.content.root
}),
this.renderThreadPaginated(opts, null, q),
this.wrapMessages(),