diff options
Diffstat (limited to 'lib/follows.js')
-rw-r--r-- | lib/follows.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/follows.js b/lib/follows.js index b262520..e1febc7 100644 --- a/lib/follows.js +++ b/lib/follows.js @@ -12,7 +12,8 @@ function Follows(sbot, contacts) { var followsCache = lru(100) this.getFollows = memo({cache: followsCache}, this.getFollows) - pull( + if (!sbot.messagesByType) console.error('missing messagesByType') + else pull( sbot.messagesByType({type: 'contact', old: false}), pull.drain(function (msg) { var author = msg && msg.value && msg.value.author |