aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-04-02 17:46:06 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-04-02 17:47:51 -1000
commit108ec779eeab8c092db727b660ddb752253b9192 (patch)
tree18abd8f172cbaabc08774457ac468217640e6d83
parent198f91bb10f4ff370994f73147d5088899bd15ca (diff)
downloadpatchfoo-108ec779eeab8c092db727b660ddb752253b9192.tar.gz
patchfoo-108ec779eeab8c092db727b660ddb752253b9192.zip
Handle missing ssb-backlinks
-rw-r--r--lib/app.js1
1 files changed, 1 insertions, 0 deletions
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,