aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-18 23:01:55 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-18 23:01:55 -0500
commitcd596012631d20517de546fcd69db003d5c2fb06 (patch)
tree20600f30a12b316957b16a27be645bb97dd4c166 /lib
parentf104723fe4fe0598f19ac3dacfaacfda93374f7e (diff)
downloadpatchfoo-cd596012631d20517de546fcd69db003d5c2fb06.tar.gz
patchfoo-cd596012631d20517de546fcd69db003d5c2fb06.zip
clean up draft
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js12
1 files changed, 7 insertions, 5 deletions
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 = {}