aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-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)),