Commit 909800fff77d989c6fd603989b6c73570271320b
blog: update comment about msg.body decorator
Matt McKegg committed on 4/11/2018, 3:47:00 AMParent: 5da29345498ec8655898194cf2ab904e54398e37
Files changed
plugs/message/html/render/blog.js | changed |
plugs/message/html/render/blog.js | ||
---|---|---|
@@ -30,10 +30,10 @@ | ||
30 | 30 | function blogRenderer (msg, opts) { |
31 | 31 | if (!canRender(msg)) return |
32 | 32 | |
33 | 33 | var content = null |
34 | - | |
35 | - // only render the message body if it is available (only in thread view), otherwise show card | |
34 | + // show a card (if there's no body loaded) or the full blog (if the blog body is loaded) | |
35 | + // msg is decorated with a `body` attribute when loaded using feed.obs.thread from patchcore | |
36 | 36 | if (msg.body) { |
37 | 37 | content = h('BlogFull.Markdown', [ |
38 | 38 | h('h1', msg.value.content.title), |
39 | 39 | api.message.html.markdown(msg.body) |
Built with git-ssb-web