diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-21 07:29:02 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-05-21 07:29:02 -0400 |
commit | 3062145ff1e210f52eb0c2750a7eacd4f7d14ce8 (patch) | |
tree | b9a77eaa96c7950da14a88f033a7e969d0b0f03e | |
parent | f70b5211476d5cd1789da03caa779297c9ce818a (diff) | |
download | patchfoo-3062145ff1e210f52eb0c2750a7eacd4f7d14ce8.tar.gz patchfoo-3062145ff1e210f52eb0c2750a7eacd4f7d14ce8.zip |
Handle missing private plugin on /private
-rw-r--r-- | lib/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)), |