render.jsView |
---|
348 | 348 … | return "document.write(" + JSON.stringify(str) + ")\n"; |
349 | 349 … | } |
350 | 350 … | |
351 | 351 … | function renderMsg(opts, id, msg) { |
| 352 … | + var c = msg.value.content || {}; |
| 353 … | + |
352 | 354 … | if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return '' |
353 | | - if (opts.renderSubscribe == false && msg.value.content.type == "channel" && msg.value.content.subscribed != undefined) return '' |
| 355 … | + if (opts.renderSubscribe == false && c.type == "channel" && c.subscribed != undefined) return '' |
| 356 … | + if (opts.renderAbout == false && c.type == "about") return '' |
354 | 357 … | if (msg.author.publicWebHosting === false) return h('article', 'User has chosen not to be hosted publicly').outerHTML; |
355 | 358 … | |
356 | | - var c = msg.value.content || {}; |
357 | 359 … | var name = encodeURIComponent(msg.key); |
358 | 360 … | return h('article#' + name, |
359 | 361 … | h('header', |
360 | 362 … | h('figure', |
|