aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js29
1 files changed, 18 insertions, 11 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 11315b6..f104e3a 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -608,18 +608,25 @@ Serve.prototype.wrapPage = function (title, searchQ) {
Serve.prototype.wrapUserFeed = function (id) {
var self = this
return u.hyperwrap(function (thread, cb) {
- var done = multicb({pluck: 1, spread: true})
- done()(null, [
- h('section.ssb-feed',
- h('h3.feed-name',
- self.app.render.avatarImage(id, done()), ' ',
- h('strong', self.app.render.idLink(id, done()))
+ self.app.getAbout(id, function (err, about) {
+ if (err) return cb(err)
+ var done = multicb({pluck: 1, spread: true})
+ done()(null, [
+ h('section.ssb-feed',
+ h('table', h('tr',
+ h('td', self.app.render.avatarImage(id, done())),
+ h('td.feed-about',
+ h('h3.feed-name',
+ h('strong', self.app.render.idLink(id, done()))),
+ h('code', h('small', id)),
+ about.description ? h('div',
+ {innerHTML: self.app.render.markdown(about.description)}) : ''
+ )))
),
- h('code', h('small', id))
- ),
- thread
- ])
- done(cb)
+ thread
+ ])
+ done(cb)
+ })
})
}