Commit 1af70e26c5c2c60bc0fcb5b854621be9d1894a5a
Fix render crash on about messages with emoji, if it was the first message rendered
Anders Rune Jensen committed on 12/18/2017, 8:41:08 PMParent: 9ba7dc35e388b5a7425bd0899e99160b4ed8e6a7
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -114,12 +114,11 @@ | ||
114 | 114 | 'Scuttlebutt')).outerHTML; |
115 | 115 | } |
116 | 116 | |
117 | 117 | function renderAbout(opts, about, showAllHTML = "") { |
118 | + opts.mentions = {} | |
118 | 119 | var figCaption = h('figcaption'); |
119 | - figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + | |
120 | - (about.description != undefined ? | |
121 | - marked(about.description, opts.marked) : ''); | |
120 | + figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description), opts.marked); | |
122 | 121 | return pull( |
123 | 122 | pull.map(renderMsg.bind(this, opts, '')), |
124 | 123 | wrap(toolTipTop() + '<main>' + |
125 | 124 | h('article', |
Built with git-ssb-web