Commit efdeaa0a623ee9b7e7a4d700a02f61921260e575
Handle posts missing content
cel committed on 5/12/2017, 8:03:22 PMParent: bff02dfad025baf27f2ed85aa4ef08854a84c8df
Files changed
render.js | changed |
render.js | |||
---|---|---|---|
@@ -431,9 +431,9 @@ | |||
431 | 431 … | else return renderDefault(c); | |
432 | 432 … | } | |
433 | 433 … | ||
434 | 434 … | function renderPost(opts, c) { | |
435 | - return '<section>' + marked(c.text, opts.marked) + "</section>"; | ||
435 … | + return '<section>' + marked(String(c.text), opts.marked) + "</section>"; | ||
436 | 436 … | } | |
437 | 437 … | ||
438 | 438 … | function renderDefault(c) { | |
439 | 439 … | return "<pre>" + JSON.stringify(c, 0, 2) + "</pre>"; |
Built with git-ssb-web