git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 1b01f50b7c8883c3a38c450b0497d3c57fd81167

handle contact messages more with the intent of patchwork

Dominic Tarr committed on 7/25/2016, 8:43:06 PM
Parent: ca58f0e7a14d980e607b0d0886ec4b0ef76b9dc1

Files changed

modules/follow.jschanged
modules/follow.jsView
@@ -13,15 +13,11 @@
1313 exports.message_content = function (msg) {
1414
1515 var content = msg.value.content
1616 if(content.type == 'contact' && content.contact) {
17- var relation = content.following ? 'follows' : 'unfollows'
18- return h('div.contact', [
19- isRelated(content.following, 'follows'),
20- isRelated(content.blocking, 'blocks')
21- ].filter(Boolean).join(' and ')
22- , avatar(msg.value.content.contact, 'thumbnail')
23- )
17+ var relation = isRelated(content.following, 'follows')
18+ if(content.blocking) relation = 'blocks'
19+ return h('div.contact', relation, avatar(msg.value.content.contact, 'thumbnail'))
2420 }
2521 }
2622
2723 var sbot_links2 = plugs.first(exports.sbot_links2 = [])
@@ -103,4 +99,12 @@
10399
104100
105101
106102
103+
104+
105+
106+
107+
108+
109+
110+

Built with git-ssb-web