From cd596012631d20517de546fcd69db003d5c2fb06 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 18 Feb 2017 23:01:55 -0500 Subject: clean up draft --- lib/render-msg.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/render-msg.js b/lib/render-msg.js index fd3e7e2..8bd3661 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -43,11 +43,13 @@ RenderMsg.prototype.raw = function (cb) { var tokens = {} // link to feed starting from this message - var tok = token() - tokens[tok] = h('a', {href: - this.toUrl(m.value.author + '?gt=' + (m.value.sequence-1))}, - m.value.sequence) - m.value.sequence = tok + if (m.value.sequence) { + var tok = token() + tokens[tok] = h('a', {href: + this.toUrl(m.value.author + '?gt=' + (m.value.sequence-1))}, + m.value.sequence) + m.value.sequence = tok + } if (typeof m.value.content === 'object' && m.value.content != null) { var c = m.value.content = {} -- cgit v1.2.3