aboutsummaryrefslogtreecommitdiff
path: root/lib/contacts.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/contacts.js')
-rw-r--r--lib/contacts.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/contacts.js b/lib/contacts.js
index e1d4a0a..39e8cee 100644
--- a/lib/contacts.js
+++ b/lib/contacts.js
@@ -10,6 +10,7 @@ function Contacts(sbot) {
}
Contacts.prototype._createContactStream = function (source, dest) {
+ if (!this.sbot.links) return pull.error(new Error('missing sbot.links'))
return pull(
this.sbot.links({
source: source,