From b10ac9b8770ce0df97257cd9df9cc27e856a2af1 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 22 Apr 2017 10:27:17 -1000 Subject: Render invalid contact messages better --- lib/render-msg.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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' : -- cgit v1.2.3