aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-09 11:09:09 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-09 11:09:09 -0400
commit912a387ae7c8732d21026c16c80eb220526dd6fd (patch)
tree03323b751b25017b299b3df043b31d61c6badf83 /lib/serve.js
parenta61279f373c90d3fdfcab9b1452ea274699b2289 (diff)
downloadpatchfoo-912a387ae7c8732d21026c16c80eb220526dd6fd.tar.gz
patchfoo-912a387ae7c8732d21026c16c80eb220526dd6fd.zip
Render feedless posts compactly
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 7d686a4..71426c3 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -4622,7 +4622,7 @@ Serve.prototype.composer = function (opts, cb) {
function closeIssueCheckbox(cb) {
var container = h('div')
- if (opts.root) self.getMsgDecryptedMaybeOoo(opts.root, function (err, rootMsg) {
+ if (opts.root && opts.root[0] === '%') self.getMsgDecryptedMaybeOoo(opts.root, function (err, rootMsg) {
if (err) return console.trace(err), cb(null)
var rootC = rootMsg && rootMsg.value.content && rootMsg.value.content
if (!rootC) return cb(null)
@@ -4642,7 +4642,7 @@ Serve.prototype.composer = function (opts, cb) {
function mentionAttendeesCheckbox(cb) {
var container = h('div')
- if (opts.root) self.getMsgDecryptedMaybeOoo(opts.root, function (err, rootMsg) {
+ if (opts.root && opts.root[0] === '%') self.getMsgDecryptedMaybeOoo(opts.root, function (err, rootMsg) {
if (err) return console.trace(err), cb(null)
var rootC = rootMsg && rootMsg.value.content && rootMsg.value.content
if (!rootC) return cb(null)