diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 7cda95d..88fe389 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -946,7 +946,15 @@ Serve.prototype.composer = function (opts, cb) { } catch(e) { return cb(), u.renderError(e) } - return self.app.render.publish(content, cb) + var done = multicb({pluck: 1, spread: true}) + toArray(content && content.mentions).forEach(function (mention) { + if (mention.link && mention.link[0] === '&' && !isNaN(mention.size)) + self.app.pushBlob(mention.link, done()) + }) + done(function (err) { + if (err) return cb(err) + self.app.render.publish(content, cb) + }) } } |