git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit db8d88fd5413a68147052d27c02367929d7d8bf9

use petname as tab title on feeds

Dominic Tarr committed on 8/28/2016, 11:12:03 AM
Parent: ab14307386b2d8b56021d853931dbd6d636cff45

Files changed

modules/feed.jschanged
modules/feed.jsView
@@ -8,8 +8,9 @@
88 var plugs = require('../plugs')
99 var sbot_user_feed = plugs.first(exports.sbot_user_feed = [])
1010 var message_render = plugs.first(exports.message_render = [])
1111 var avatar_profile = plugs.first(exports.avatar_profile = [])
12+var signifier = plugs.first(exports.signifier = [])
1213
1314 exports.screen_view = function (id) {
1415 //TODO: header of user info, avatars, names, follows.
1516
@@ -23,8 +24,13 @@
2324 content
2425 )
2526 )
2627
28+ signifier(id, function (_, names) {
29+ if(names.length) div.title = names[0].name
30+ })
31+
32+
2733 pull(
2834 sbot_user_feed({id: id, old: false, live: true}),
2935 Scroller(div, content, message_render, true, false)
3036 )
@@ -47,6 +53,4 @@
4753
4854
4955
5056
51-
52-

Built with git-ssb-web