aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js42
1 files changed, 1 insertions, 41 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 754a67e..b87f304 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -829,33 +829,6 @@ Serve.prototype.wrapPage = function (title, searchQ) {
)
}
-Serve.prototype.renderFriend = function (id, cb) {
- var el = this.app.render.idLink(id, function (err) {
- cb(err, el)
- })
-}
-
-Serve.prototype.friendList = function (friends, cb) {
- var self = this
- var list = h('div')
- var first = true
- pull(
- pull.values(friends),
- paramap(function (id, cb) {
- self.renderFriend(id, function (err, el) {
- if (err) el = u.renderError(err, ext)
- cb(null, el)
- })
- }, 8),
- pull.drain(function (el) {
- if (first) first = false
- else list.appendChild(h('span', ', '))
- list.appendChild(el)
- }, cb)
- )
- return list
-}
-
var relationships = [
'',
'followed',
@@ -878,8 +851,7 @@ Serve.prototype.wrapUserFeed = function (isScrolled, id) {
self.app.getAbout(id, done())
self.app.getFollow(myId, id, done())
self.app.getFollow(id, myId, done())
- if (!isScrolled) self.app.getFriendInfo(id, done())
- done(function (err, about, weFollowThem, theyFollowUs, info) {
+ done(function (err, about, weFollowThem, theyFollowUs) {
if (err) return cb(err)
var relationshipI = weFollowThem | theyFollowUs<<1
var done = multicb({pluck: 1, spread: true})
@@ -906,18 +878,6 @@ Serve.prototype.wrapUserFeed = function (isScrolled, id) {
h('input', {type: 'submit',
value: relationshipActions[relationshipI]})
))
- ),
- h('tr',
- h('td', 'friends:'),
- h('td', self.friendList(info.friends, done()))
- ),
- h('tr',
- h('td', 'follows:'),
- h('td', self.friendList(info.follows, done()))
- ),
- h('tr',
- h('td', 'followers:'),
- h('td', self.friendList(info.followers, done()))
)
]
)),