aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-05-21 07:29:02 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-05-21 07:29:02 -0400
commit3062145ff1e210f52eb0c2750a7eacd4f7d14ce8 (patch)
treeb9a77eaa96c7950da14a88f033a7e969d0b0f03e
parentf70b5211476d5cd1789da03caa779297c9ce818a (diff)
downloadpatchfoo-3062145ff1e210f52eb0c2750a7eacd4f7d14ce8.tar.gz
patchfoo-3062145ff1e210f52eb0c2750a7eacd4f7d14ce8.zip
Handle missing private plugin on /private
-rw-r--r--lib/app.js3
1 files changed, 2 insertions, 1 deletions
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)),