aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/render.js b/lib/render.js
index a86bd92..c43ee76 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -314,9 +314,14 @@ Render.prototype.renderMsg = function (msg, opts, cb) {
Render.prototype.renderFeeds = function (opts) {
var self = this
- return paramap(function (msg, cb) {
- self.renderMsg(msg, opts, cb)
- }, 4)
+ var limit = Number(opts.limit)
+ return pull(
+ paramap(function (msg, cb) {
+ self.renderMsg(msg, opts, cb)
+ }, 4),
+ pull.filter(Boolean),
+ limit && pull.take(limit)
+ )
}
Render.prototype.gitCommitBody = function (body) {