git ssb

9+

cel / ssb-viewer



Commit efdeaa0a623ee9b7e7a4d700a02f61921260e575

Handle posts missing content

cel committed on 5/12/2017, 8:03:22 PM
Parent: bff02dfad025baf27f2ed85aa4ef08854a84c8df

Files changed

render.jschanged
render.jsView
@@ -431,9 +431,9 @@
431431 else return renderDefault(c);
432432 }
433433
434434 function renderPost(opts, c) {
435- return '<section>' + marked(c.text, opts.marked) + "</section>";
435 + return '<section>' + marked(String(c.text), opts.marked) + "</section>";
436436 }
437437
438438 function renderDefault(c) {
439439 return "<pre>" + JSON.stringify(c, 0, 2) + "</pre>";

Built with git-ssb-web