diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js index 759477d..41d4d6f 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1217,7 +1217,7 @@ Serve.prototype.block = function (path) { ph('h2', ['Block ', self.phIdLink(id)]), ph('form', {action: '', method: 'post', enctype: 'multipart/form-data'}, [ 'Reason: ', ph('input', {name: 'reason', value: reason || '', - style: 'width: 100%', + className: 'wide', placeholder: 'spam, abuse, etc.'}), self.phMsgActions(content), ]), @@ -3688,7 +3688,7 @@ Serve.prototype.composer = function (opts, cb) { h('input', {type: 'hidden', name: 'url', value: self.req.url}), h('input', {type: 'hidden', name: 'composer_id', value: opts.id}), opts.recps ? self.app.render.privateLine(opts.recps, true, done()) : - opts.private ? h('div', h('input.recps-input', {name: 'recps', + opts.private ? h('div', h('input.wide', {name: 'recps', size: 70, value: data.recps || '', placeholder: 'recipient ids'})) : '', channel != null ? h('div', '#', h('input', {name: 'channel', placeholder: 'channel', @@ -3700,6 +3700,9 @@ Serve.prototype.composer = function (opts, cb) { ) ) : '', closeIssueCheckbox(done()), + h('div', h('input.wide', {name: 'content_warning', size: 70, + value: data.content_warning || '', + placeholder: 'Content Warning'})), h('textarea', { id: opts.id, name: 'text', @@ -3878,6 +3881,7 @@ Serve.prototype.composer = function (opts, cb) { } ] } + if (data.content_warning) content.contentWarning = String(data.content_warning) if (channel) content.channel = data.channel done(function (err) { |