diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/app.js | 4 | ||||
-rw-r--r-- | lib/serve.js | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -17,7 +17,7 @@ function App(sbot, config) { var conf = config.patchfoo || {} this.port = conf.port || 8027 - this.host = conf.host || 'localhost' + this.host = conf.host || '::1' var base = conf.base || '/' this.opts = { @@ -58,6 +58,8 @@ App.prototype.unboxMsg = function (msg, cb) { if (err) { self.error('unbox:', err) return cb(null, msg) + } else if (content === false) { + return cb(null, msg) } var m = {} for (var k in msg) m[k] = msg[k] diff --git a/lib/serve.js b/lib/serve.js index 0dd403a..11315b6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -593,7 +593,7 @@ Serve.prototype.wrapPage = function (title, searchQ) { h('a', {href: render.toUrl('/private')}, 'private') , ' ', render.idLink(self.app.sbot.id, done()), ' ', h('input.search-input', {name: 'q', value: searchQ, - placeholder: 'search', size: 16}) + placeholder: 'search'}) // h('a', {href: '/convos'}, 'convos'), ' ', // h('a', {href: '/friends'}, 'friends'), ' ', // h('a', {href: '/git'}, 'git') |