Commit f6487e3f937bcb47dc60546afcec2e728660b0db
rollup: make sure root message exists before trying to unbox it
Matt McKegg committed on 12/12/2017, 9:10:28 PMParent: 339a023bbaaa61ba00aff4dafebc56391660606d
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -281,9 +281,9 @@ | ||
281 | 281 … | return paramap((msg, cb) => { |
282 | 282 … | var rootId = api.message.sync.root(msg) |
283 | 283 … | if (rootId) { |
284 | 284 … | api.sbot.async.get(rootId, (_, value) => { |
285 | - if (typeof value.content === 'string') { | |
285 … | + if (value && typeof value.content === 'string') { | |
286 | 286 … | // unbox private message |
287 | 287 … | value = api.message.sync.unbox(value) |
288 | 288 … | } |
289 | 289 … | cb(null, extend(msg, { |
Built with git-ssb-web