Fix render crash on about messages with emoji, if it was the first message rendered

This commit is contained in:
Anders Rune Jensen
2017-12-18 21:41:08 +01:00
parent 9ba7dc35e3
commit 1af70e26c5
+2 -3
View File
@@ -115,10 +115,9 @@ function toolTipTop() {
}
function renderAbout(opts, about, showAllHTML = "") {
opts.mentions = {}
var figCaption = h('figcaption');
figCaption.innerHTML = 'Feed of ' + about.name + '<br>' +
(about.description != undefined ?
marked(about.description, opts.marked) : '');
figCaption.innerHTML = 'Feed of ' + about.name + '<br>' + marked(String(about.description), opts.marked);
return pull(
pull.map(renderMsg.bind(this, opts, '')),
wrap(toolTipTop() + '<main>' +