git ssb

10+

Matt McKegg / patchwork



Commit 909800fff77d989c6fd603989b6c73570271320b

blog: update comment about msg.body decorator

Matt McKegg committed on 4/11/2018, 3:47:00 AM
Parent: 5da29345498ec8655898194cf2ab904e54398e37

Files changed

plugs/message/html/render/blog.jschanged
plugs/message/html/render/blog.jsView
@@ -30,10 +30,10 @@
3030 function blogRenderer (msg, opts) {
3131 if (!canRender(msg)) return
3232
3333 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
3636 if (msg.body) {
3737 content = h('BlogFull.Markdown', [
3838 h('h1', msg.value.content.title),
3939 api.message.html.markdown(msg.body)

Built with git-ssb-web