aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarina Kukso <marina.kukso@gmail.com>2018-03-11 16:23:47 -1000
committerMarina Kukso <marina.kukso@gmail.com>2018-03-11 16:23:47 -1000
commit8136c551b5cc4d438f3b1bb4bfe897c2637a0ea8 (patch)
tree6ca95189be1700420616c4c3bce3fe0d67480dc8 /lib
parentb1f5bccd58e994f7c32298cb8509a77914b0a0c8 (diff)
downloadpatchfoo-8136c551b5cc4d438f3b1bb4bfe897c2637a0ea8.tar.gz
patchfoo-8136c551b5cc4d438f3b1bb4bfe897c2637a0ea8.zip
allow loading before ssb-private
Diffstat (limited to 'lib')
-rw-r--r--lib/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app.js b/lib/app.js
index 6909846..4a4d696 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -51,7 +51,7 @@ function App(sbot, config) {
this.getMsgOoo = memo({cache: this.msgCache}, this.getMsgOoo)
this.getAbout = memo({cache: this.aboutCache = lru(500)},
this._getAbout.bind(this))
- this.unboxContent = memo({cache: lru(100)}, sbot.private.unbox)
+ this.unboxContent = memo({cache: lru(100)}, function(value, cb){sbot.private.unbox(value, cb)})
this.reverseNameCache = lru(500)
this.reverseEmojiNameCache = lru(500)
this.getBlobSize = memo({cache: this.blobSizeCache = lru(100)},