git ssb

9+

cel / ssb-viewer



Commit b99fb41a81ed0e6a2d0e1f32c5fae9ce6cf5d9de

Fix RSS rendering

cel committed on 6/11/2017, 12:32:13 AM
Parent: ee9c39f0499ced79d136914439eba10ccec934df

Files changed

render.jschanged
render.jsView
@@ -353,17 +353,17 @@
353353 function renderRss(opts, msg) {
354354 var c = msg.value.content || {};
355355 var name = encodeURIComponent(msg.key);
356356
357- let content = render(opts, c);
357 + let content = h('div', render(opts, c)).innerHTML;
358358
359359 if (!content) {
360360 return null;
361361 }
362362
363363 return (
364364 '<item>' +
365- '<title>' + msg.author.name + ' | ' + c.type + '</title>' +
365 + '<title>' + escape(msg.author.name + ' | ' + (c.type || 'private')) + '</title>' +
366366 '<description><![CDATA[' + content + ']]></description>' +
367367 '<link>' + opts.base + escape(name) + '</link>' +
368368 '<pubDate>' + new Date(msg.value.timestamp).toUTCString() + '</pubDate>' +
369369 '<guid>' + msg.key + '</guid>' +

Built with git-ssb-web