diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 528553f..7883dee 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -398,8 +398,8 @@ RenderMsg.prototype.post = function (cb) { 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), ', '] + self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag, i) { + return [i > 0 ? ', ' : '', h('code', tag)] }))) : '', h('div.ssb-post-text', {innerHTML: self.markdown()}) ), cb) @@ -1205,7 +1205,7 @@ RenderMsg.prototype.dns = function (cb) { JSON.stringify(record.data || record.value, null, 2)), !self.c.branch ? null : h('div', 'replaces: ', u.toArray(self.c.branch).map(function (id, i) { - return [self.link1(id, done()), i === 0 ? ', ' : ''] + return [i > 0 ? ', ' : '', self.link1(id, done())] }) ) ) |