diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-01-28 11:04:01 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-01-28 19:36:02 -1000 |
commit | c97320afa26fcd03fbefa6af99045dfb1befa743 (patch) | |
tree | 2bde56db364e2b9c98359a5da5dad573a675a523 /lib/serve.js | |
parent | cae620df7c1340cf817c83ae5f21de1592964de4 (diff) | |
download | patchfoo-c97320afa26fcd03fbefa6af99045dfb1befa743.tar.gz patchfoo-c97320afa26fcd03fbefa6af99045dfb1befa743.zip |
Allow truncating name links
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/serve.js b/lib/serve.js index f71e083..9224f28 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1697,10 +1697,10 @@ Serve.prototype.wrapPage = function (title, searchQ) { ) } -Serve.prototype.phIdLink = function (id) { +Serve.prototype.phIdLink = function (id, opts) { return pull( pull.once(id), - this.renderIdsList() + this.renderIdsList(opts) ) } @@ -1734,11 +1734,11 @@ Serve.prototype.friends = function (path) { ) } -Serve.prototype.renderIdsList = function () { +Serve.prototype.renderIdsList = function (opts) { var self = this return pull( paramap(function (id, cb) { - self.app.render.getNameLink(id, cb) + self.app.render.getNameLink(id, opts, cb) }, 8), pull.map(function (el) { return [el, ' '] |