render.jsView |
---|
114 | 114 | 'Scuttlebutt')).outerHTML; |
115 | 115 | } |
116 | 116 | |
117 | 117 | function renderAbout(opts, about, showAllHTML = "") { |
118 | | - opts.mentions = {} |
| 118 | + opts.mentions = {}; |
119 | 119 | var figCaption = h('figcaption'); |
120 | | - figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description), opts.marked); |
| 120 | + figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description), opts.marked); |
121 | 121 | return pull( |
122 | 122 | pull.map(renderMsg.bind(this, opts, '')), |
123 | 123 | wrap(toolTipTop() + '<main>' + |
124 | 124 | h('article', |
337 | 337 | return "document.write(" + JSON.stringify(str) + ")\n"; |
338 | 338 | } |
339 | 339 | |
340 | 340 | function renderMsg(opts, id, msg) { |
| 341 | + if (opts.renderPrivate == false && typeof(msg.value.content) == 'string') return '' |
341 | 342 | var c = msg.value.content || {}; |
342 | 343 | var name = encodeURIComponent(msg.key); |
343 | 344 | return h('article#' + name, |
344 | 345 | h('header', |