aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-27 14:59:27 -0800
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-11-27 14:59:54 -0800
commit9fb7439fdc58c506b0f6281b47448336512e12dc (patch)
treecfbd7876dac6a1d0e95fa918b501e148632fb387 /lib
parentf51983b5e78e1dd23ae6482b97679a5618560429 (diff)
downloadpatchfoo-9fb7439fdc58c506b0f6281b47448336512e12dc.tar.gz
patchfoo-9fb7439fdc58c506b0f6281b47448336512e12dc.zip
Set recps in composer if message is private but has no recps
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 47bc7c2..e86de59 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1015,6 +1015,9 @@ Serve.prototype.id = function (id, path) {
if (err) return self.respond(500, err.stack || err)
var rootContent = rootMsg && rootMsg.value && rootMsg.value.content
var recps = rootContent && rootContent.recps
+ || (rootMsg.value.private ?
+ ? [rootMsg.value.author, self.app.sbot.id].filter(uniques())
+ : undefined)
var threadRootId = rootContent && rootContent.root || id
var channel