From 13a679793e88e66d13fa7d8512201c70c15154a8 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 19 Dec 2017 11:07:32 -1000 Subject: Render publicWebHosting about --- lib/render-msg.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/render-msg.js b/lib/render-msg.js index 825bb02..a7b7339 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -493,6 +493,19 @@ RenderMsg.prototype.about = function (cb) { ], cb) } + if (keys === 'about,publicWebHosting,type') { + var public = this.c.publicWebHosting && this.c.publicWebHosting !== 'false' + return this.wrapMini([ + isSelf ? + public ? 'is okay with being hosted publicly' + : 'wishes to not to be hosted publicly' + : public ? ['thinks ', h('a', {href: this.toUrl(this.c.about)}, truncate(this.c.about, 10)), + ' should be hosted publicly '] + : ['wishes ', h('a', {href: this.toUrl(this.c.about)}, truncate(this.c.about, 10)), + ' to not be hosted publicly'] + ], cb) + } + var done = multicb({pluck: 1, spread: true}) var elCb = done() -- cgit v1.2.3