From 3062145ff1e210f52eb0c2750a7eacd4f7d14ce8 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 21 May 2018 07:29:02 -0400 Subject: Handle missing private plugin on /private --- lib/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index b554f31..31ef492 100644 --- a/lib/app.js +++ b/lib/app.js @@ -651,7 +651,8 @@ App.prototype.streamMentions = function (opts) { } App.prototype.streamPrivate = function (opts) { - if (this.sbot.private.read) return this.filter(this.sbot.private, opts, {}) + if (this.sbot.private && this.sbot.private.read) + return this.filter(this.sbot.private, opts, {}) return pull( this.createLogStream(u.mergeOpts(opts)), -- cgit v1.2.3