From cbb586300896002d22da7fcb9b8f86ede9745e8a Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 18 Oct 2017 10:52:56 -1000 Subject: Render blocks and blockers on contacts pages --- lib/app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/app.js') 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 } -- cgit v1.2.3