diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-11-27 14:59:27 -0800 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-11-27 14:59:54 -0800 |
commit | 9fb7439fdc58c506b0f6281b47448336512e12dc (patch) | |
tree | cfbd7876dac6a1d0e95fa918b501e148632fb387 /lib | |
parent | f51983b5e78e1dd23ae6482b97679a5618560429 (diff) | |
download | patchfoo-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.js | 3 |
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 |