aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js13
1 files changed, 13 insertions, 0 deletions
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()