aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-01 17:02:00 -0800
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-04 02:53:52 -0800
commita474a5cbbd7e6e4d58c6cb13cb566637b553862f (patch)
tree6b4cd678367ef72178d450f6bb0d1088abd6731b /lib
parent8fbf988aaa95b58d05cfff7d56e370051ae7bec2 (diff)
downloadpatchfoo-a474a5cbbd7e6e4d58c6cb13cb566637b553862f.tar.gz
patchfoo-a474a5cbbd7e6e4d58c6cb13cb566637b553862f.zip
Small adjustments
- Listen on IPv6 localhost by default - Make search box bigger - Keep unencrypted content
Diffstat (limited to 'lib')
-rw-r--r--lib/app.js4
-rw-r--r--lib/serve.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/app.js b/lib/app.js
index d89eaa9..cb9ad6d 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -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')