From 1be957cb6289bc5f90f9a6c5eef69384406db3b0 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 3 Sep 2019 14:50:21 -0700 Subject: Render secret-islands post coordinates and tags --- lib/render-msg.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/render-msg.js b/lib/render-msg.js index e99a0a5..528553f 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -397,6 +397,10 @@ RenderMsg.prototype.post = function (cb) { forkLinks.map(function (a, i) { return h('div', h('small', h('span.symbol', '⑂'), ' ', a)) }), + self.c.x || self.c.y ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '', + self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag) { + return [h('code', tag), ', '] + }))) : '', h('div.ssb-post-text', {innerHTML: self.markdown()}) ), cb) }) -- cgit v1.2.3