Commit db8d88fd5413a68147052d27c02367929d7d8bf9
use petname as tab title on feeds
Dominic Tarr committed on 8/28/2016, 11:12:03 AMParent: ab14307386b2d8b56021d853931dbd6d636cff45
Files changed
modules/feed.js | changed |
modules/feed.js | ||
---|---|---|
@@ -8,8 +8,9 @@ | ||
8 | 8 | var plugs = require('../plugs') |
9 | 9 | var sbot_user_feed = plugs.first(exports.sbot_user_feed = []) |
10 | 10 | var message_render = plugs.first(exports.message_render = []) |
11 | 11 | var avatar_profile = plugs.first(exports.avatar_profile = []) |
12 | +var signifier = plugs.first(exports.signifier = []) | |
12 | 13 | |
13 | 14 | exports.screen_view = function (id) { |
14 | 15 | //TODO: header of user info, avatars, names, follows. |
15 | 16 | |
@@ -23,8 +24,13 @@ | ||
23 | 24 | content |
24 | 25 | ) |
25 | 26 | ) |
26 | 27 | |
28 | + signifier(id, function (_, names) { | |
29 | + if(names.length) div.title = names[0].name | |
30 | + }) | |
31 | + | |
32 | + | |
27 | 33 | pull( |
28 | 34 | sbot_user_feed({id: id, old: false, live: true}), |
29 | 35 | Scroller(div, content, message_render, true, false) |
30 | 36 | ) |
@@ -47,6 +53,4 @@ | ||
47 | 53 | |
48 | 54 | |
49 | 55 | |
50 | 56 | |
51 | - | |
52 | - |
Built with git-ssb-web