aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-22 12:55:50 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-22 12:55:50 -1000
commit2ccd1ae36809bb7793ae2b663ccec0f348fba459 (patch)
tree2c2a2e6bfcbe2168b3fc6a65b94e1683351d5516
parent5a506310b9259575aba760aedd46f647681e6173 (diff)
downloadpatchfoo-2ccd1ae36809bb7793ae2b663ccec0f348fba459.tar.gz
patchfoo-2ccd1ae36809bb7793ae2b663ccec0f348fba459.zip
Render fork property
-rw-r--r--lib/render-msg.js6
1 files changed, 5 insertions, 1 deletions
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)
})