Commit 1467096ba00c483e19443074f64ea107da692c4e
patch render/post
mix irving committed on 9/10/2017, 8:22:37 AMParent: cc1437fecab5c0ee77e3635f3d50a782236080d1
Files changed
message/html/render/post.js | changed |
message/html/render/post.js | ||
---|---|---|
@@ -14,9 +14,9 @@ | ||
14 | 14 … | |
15 | 15 … | exports.create = function (api) { |
16 | 16 … | return nest('message.html.render', function renderMessage (msg, opts) { |
17 | 17 … | if (msg.value.content.type !== 'post') return |
18 | - if (opts && opts.layout !== 'inbox') return | |
18 … | + if (!opts || opts.layout !== 'inbox') return | |
19 | 19 … | |
20 | 20 … | var element = api.message.html.layout(msg, Object.assign({}, { |
21 | 21 … | title: messageTitle(msg), |
22 | 22 … | // content: messageContent(msg), // not needed |
Built with git-ssb-web