diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js index f5101e1..1c36c44 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -385,6 +385,11 @@ Serve.prototype.channel = function (channel) { }}] } + if (!this.app.sbot.query) return pull( + pull.once(u.renderError(new Error('Missing ssb-query plugin').outerHTML)), + self.respondSink(400, {'Content-Type': ctype('html')}) + ) + pull( this.app.sbot.query.read(opts), this.renderThreadPaginated(opts, null, q), |