git ssb


10+

Dominic / patchbay



mini pub messages.

%hTqFYE0vM5esMiNEAzL7Jj7WNnayi64Dy0QmJ+MimHY=.sha256
Closed cel wants to merge commits into master from mini-pub
modules_basic/pub.jschanged
modules_basic/pub.jsView
@@ -4,22 +4,22 @@
44 avatar_name: 'first',
55 avatar_link: 'first'
66 }
77
8-exports.gives = 'message_content'
8+exports.gives = 'message_content_mini'
99
1010 exports.create = function (api) {
1111
1212 return function (msg, sbot) {
1313 var c = msg.value.content
1414 if (c.type === 'pub') {
15- var address = c.address || {}
15+ var address = c.address || c.pub || {}
16+ var pubId = address.key || address.link
1617 return [
17- h('p', 'announced an address for ',
18- api.avatar_link(address.key, api.avatar_name(address.key)), ':'),
19- h('blockquote',
20- h('code', address.host + ':' + address.port)
21- )
18+ 'connects to ',
19+ api.avatar_link(pubId, api.avatar_name(pubId)),
20+ ' at ',
21+ h('code', address.host, address.port ? ':' + address.port : '')
2222 ]
2323 }
2424 }
2525

Built with git-ssb-web