From d3244b38bb2daecb1cf73cefc2fa50ca30640ffb Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 13 Oct 2017 14:15:05 -1000 Subject: Fix name conflict --- lib/app.js | 4 ++-- 1 file 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 -- cgit v1.2.3