aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-19 11:07:32 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-12-19 11:07:32 -1000
commit13a679793e88e66d13fa7d8512201c70c15154a8 (patch)
treedd1a4a17f49407c64c7544c73dab50071b14c3f3 /lib
parent3688ed73dfac0fcb85ef0aaedfa18febc4f175aa (diff)
downloadpatchfoo-13a679793e88e66d13fa7d8512201c70c15154a8.tar.gz
patchfoo-13a679793e88e66d13fa7d8512201c70c15154a8.zip
Render publicWebHosting about
Diffstat (limited to 'lib')
-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()