Permalink
Browse files

Ensure that msg.value is truthy

This resolves and edge-case where a message is being passed to
checkBump. I'm unclear on *why* this is necessary, as sbot seems to be
reporting that the message doesn't exist, but it should resolve the bug.
  • Loading branch information...
christianbundy committed Nov 1, 2018
1 parent 0619440 commit 0ced2c6afbabc949b37b309c139dad8852959b17
Showing with 1 addition and 0 deletions.
  1. +1 −0 sbot/channel-feed.js
@@ -116,6 +116,7 @@ exports.init = function (ssb, config) {
}
function checkBump (msg, { channel }) {
if (!msg.value) return
if (msg.value.content.type === 'vote') return
if (normalizeChannel(msg.value.content.channel) === channel) {
if (getRoot(msg)) {

0 comments on commit 0ced2c6

Please sign in to comment.