From c97320afa26fcd03fbefa6af99045dfb1befa743 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 28 Jan 2019 11:04:01 -1000 Subject: Allow truncating name links --- lib/serve.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/serve.js') 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, ' '] -- cgit v1.2.3