git ssb

16+

Dominic / patchbay



Tree: 26afbb3703400ed773df3fdb62dd05be51b56dab

Files: 26afbb3703400ed773df3fdb62dd05be51b56dab / modules / follow.js

377 bytesRaw
1var h = require('hyperscript')
2var u = require('../util')
3exports.avatar = []
4
5//render a message when someone follows someone,
6//so you see new users
7exports.message_content = function (msg, sbot) {
8
9 if(msg.value.content.type == 'contact') {
10 return h('div.contact',
11 'follows',
12 u.firstPlug(exports.avatar, msg.value.content.contact, sbot)
13 )
14 }
15}
16
17
18
19
20
21
22
23
24

Built with git-ssb-web