aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-06-28 23:16:37 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-06-28 23:16:37 -1000
commitd23f29afb789f399f74d9d33987e8e3e1f235afd (patch)
tree0e7364950fc5909ddce54fa8633c805dce2a3530 /lib/render-msg.js
parentd51ccc5142d4429b324bedb37b96fd5e2bcee4f0 (diff)
downloadpatchfoo-d23f29afb789f399f74d9d33987e8e3e1f235afd.tar.gz
patchfoo-d23f29afb789f399f74d9d33987e8e3e1f235afd.zip
Render weird pub messages
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index afbdc00..281abb6 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -648,8 +648,8 @@ RenderMsg.prototype.contact = function (cb) {
RenderMsg.prototype.pub = function (cb) {
var self = this
- var addr = self.c.address || {}
- self.link(addr.key, function (err, pubLink) {
+ var addr = self.c.address || self.c.pub || {}
+ self.link(addr.key || addr.link, function (err, pubLink) {
if (err) return cb(err)
self.wrapMini([
'connects to ', pubLink, ' at ',