From 108ec779eeab8c092db727b660ddb752253b9192 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 2 Apr 2018 17:46:06 -1000 Subject: Handle missing ssb-backlinks --- lib/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/app.js b/lib/app.js index 4a4d696..9f0b883 100644 --- a/lib/app.js +++ b/lib/app.js @@ -807,6 +807,7 @@ App.prototype.getAddresses = function (id) { } App.prototype.getIdeaTitle = function (id, cb) { + if (!this.sbot.backlinks) return cb(null, String(id).substr(0, 8) + '…') pull( this.sbot.backlinks.read({ reverse: true, -- cgit v1.2.3