Files: 34d99e9e2271da97998a436bbf03e9a3a5b80d16 / modules / follow.js
390 bytesRaw
1 | var h = require('hyperscript') |
2 | var u = require('../util') |
3 | var avatar = require('../plugs').first(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 | avatar(msg.value.content.contact) |
13 | ) |
14 | } |
15 | } |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 |
Built with git-ssb-web