From 2ccd1ae36809bb7793ae2b663ccec0f348fba459 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 22 Oct 2017 12:55:50 -1000 Subject: Render fork property --- lib/render-msg.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index 2d52c83..c5d4756 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -290,13 +290,17 @@ RenderMsg.prototype.post = function (cb) { if (self.c.root === self.c.branch) done()() else self.link(self.c.root, done()) self.links(self.c.branch, done()) - done(function (err, rootLink, branchLinks) { + self.links(self.c.fork, done()) + done(function (err, rootLink, branchLinks, forkLinks) { if (err) return self.wrap(u.renderError(err), cb) self.wrap(h('div.ssb-post', rootLink ? h('div', h('small', h('span.symbol', '→'), ' ', rootLink)) : '', branchLinks.map(function (a, i) { return h('div', h('small', h('span.symbol', '  ↳'), ' ', a)) }), + forkLinks.map(function (a, i) { + return h('div', h('small', h('span.symbol', '⑂'), ' ', a)) + }), h('div.ssb-post-text', {innerHTML: self.markdown()}) ), cb) }) -- cgit v1.2.3