aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-18 10:52:56 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-18 11:30:09 -1000
commitcbb586300896002d22da7fcb9b8f86ede9745e8a (patch)
treefcf67eaf491d2e9c5ada0370c933fff6ccb7137e /lib/app.js
parent9be582e55325ff484c3c49baa155a4deb09450af (diff)
downloadpatchfoo-cbb586300896002d22da7fcb9b8f86ede9745e8a.tar.gz
patchfoo-cbb586300896002d22da7fcb9b8f86ede9745e8a.zip
Render blocks and blockers on contacts pages
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/app.js b/lib/app.js
index bcbc118..e1383a8 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -6,7 +6,7 @@ var u = require('./util')
var pull = require('pull-stream')
var multicb = require('multicb')
var paramap = require('pull-paramap')
-var Contacts = require('ssb-contact')
+var getContacts = require('./contact')
var About = require('./about')
var Serve = require('./serve')
var Render = require('./render')
@@ -51,6 +51,7 @@ function App(sbot, config) {
sbot.blobs.size.bind(sbot.blobs))
this.getFollows = memo(this._getFollows.bind(this))
this.getVotes = memo({cache: lru(100)}, this._getVotes.bind(this))
+ this.getContacts = getContacts.bind(null, this.sbot)
this.unboxMsg = this.unboxMsg.bind(this)
@@ -462,10 +463,6 @@ App.prototype.streamMyChannels = function (id, opts) {
)
}
-App.prototype.createContactStreams = function (id) {
- return new Contacts(this.sbot).createContactStreams(id)
-}
-
function compareVoted(a, b) {
return b.value - a.value
}