render.jsView |
---|
351 | 351 … | var c = msg.value.content || {}; |
352 | 352 … | |
353 | 353 … | if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return '' |
354 | 354 … | if (opts.renderSubscribe == false && c.type == "channel" && c.subscribed != undefined) return '' |
| 355 … | + if (opts.renderVote == false && c.type == "vote") return '' |
| 356 … | + if (opts.renderChess == false && c.type.startsWith("chess")) return '' |
| 357 … | + if (opts.renderTalenet == false && c.type.startsWith("talenet")) return '' |
| 358 … | + if (opts.renderFollow == false && c.type == "contact") return '' |
355 | 359 … | if (opts.renderAbout == false && c.type == "about") return '' |
| 360 … | + if (opts.renderPub == false && c.type == "pub") return '' |
356 | 361 … | if (msg.author.publicWebHosting === false) return h('article', 'User has chosen not to be hosted publicly').outerHTML; |
357 | 362 … | |
358 | 363 … | var name = encodeURIComponent(msg.key); |
359 | 364 … | return h('article#' + name, |