aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/app.js b/lib/app.js
index 71fd3f0..d999598 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -28,7 +28,7 @@ function App(sbot, config) {
var conf = config.patchfoo || {}
this.port = conf.port || 8027
this.host = conf.host || 'localhost'
- this.filter = conf.filter
+ this.msgFilter = conf.filter
var base = conf.base || '/'
this.opts = {
@@ -679,7 +679,7 @@ App.prototype.filterMsg = function (msg, opts, cb) {
var self = this
var myId = self.sbot.id
var author = msg.value && msg.value.author
- var filter = opts.filter || self.filter
+ var filter = opts.filter || self.msgFilter
var show = (filter !== 'invert')
if (filter === 'all'
|| author === myId