Files: 9ae49c99c4e15aee20a0b51e586caccd37d33d1e / modules / follow.js
418 bytesRaw
1 | var h = require('hyperscript') |
2 | var u = require('../util') |
3 | exports.avatar = [] |
4 | |
5 | //render a message when someone follows someone, |
6 | //so you see new users |
7 | exports.message_content = function (msg, sbot) { |
8 | |
9 | if(msg.value.content.type == 'contact') { |
10 | return h('div.contact', |
11 | 'follows', |
12 | u.first(exports.avatar, function (plug) { |
13 | return plug(msg.value.content.contact, sbot) |
14 | }) |
15 | ) |
16 | } |
17 | } |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 |
Built with git-ssb-web