diff options
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js index df7d378..a86bd92 100644 --- a/lib/render.js +++ b/lib/render.js @@ -304,7 +304,12 @@ Render.prototype.msgLink = function (msg, cb) { } Render.prototype.renderMsg = function (msg, opts, cb) { - new RenderMsg(this, this.app, msg, opts).message(cb) + var self = this + self.app.filterMsg(msg, opts, function (err, show) { + if (err) return cb(err) + if (show) new RenderMsg(self, self.app, msg, opts).message(cb) + else cb(null, '') + }) } Render.prototype.renderFeeds = function (opts) { |