diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-22 10:27:17 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-22 10:27:31 -1000 |
commit | b10ac9b8770ce0df97257cd9df9cc27e856a2af1 (patch) | |
tree | 68c75abd000e2a546c55601eace625b2603f8efb | |
parent | 4170af908562ae50c5228bb3cf8500f6e84b4212 (diff) | |
download | patchfoo-b10ac9b8770ce0df97257cd9df9cc27e856a2af1.tar.gz patchfoo-b10ac9b8770ce0df97257cd9df9cc27e856a2af1.zip |
Render invalid contact messages better
-rw-r--r-- | lib/render-msg.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 692d64f..6ae36b5 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -380,6 +380,7 @@ RenderMsg.prototype.contact = function (cb) { var self = this self.link(self.c.contact, function (err, a) { if (err) return cb(err) + if (!a) a = "?" self.wrapMini([ self.c.following && self.c.autofollow ? 'follows pub' : self.c.following && self.c.pub ? 'autofollows' : |