aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-13 14:15:05 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-13 14:15:05 -1000
commitd3244b38bb2daecb1cf73cefc2fa50ca30640ffb (patch)
tree946a669ad930c3cba6e7dc4a403568bb9c6cbec1 /lib
parent0e7bd91590b8c9fc28113c785e39946943491719 (diff)
downloadpatchfoo-d3244b38bb2daecb1cf73cefc2fa50ca30640ffb.tar.gz
patchfoo-d3244b38bb2daecb1cf73cefc2fa50ca30640ffb.zip
Fix name conflict
Diffstat (limited to 'lib')
-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