aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-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 = {}