git ssb

9+

cel / ssb-viewer



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 PM
Parent: 9ba7dc35e388b5a7425bd0899e99160b4ed8e6a7

Files changed

render.jschanged
render.jsView
@@ -114,12 +114,11 @@
114114 'Scuttlebutt')).outerHTML;
115115 }
116116
117117 function renderAbout(opts, about, showAllHTML = "") {
118 + opts.mentions = {}
118119 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);
122121 return pull(
123122 pull.map(renderMsg.bind(this, opts, '')),
124123 wrap(toolTipTop() + '<main>' +
125124 h('article',

Built with git-ssb-web