diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-10 09:05:39 +1300 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-10 09:05:39 +1300 |
commit | 5a169c09490be4d0810113843a4a1444a2471e05 (patch) | |
tree | a12784fa6ce4e627ed1af7b0e1783b5b49080a6c /lib | |
parent | 1440e747ee632fb5ab7cc37da59965086524e4de (diff) | |
download | patchfoo-5a169c09490be4d0810113843a4a1444a2471e05.tar.gz patchfoo-5a169c09490be4d0810113843a4a1444a2471e05.zip |
Don't reply-mention self
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js index 9a2eeed..e865f75 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -3908,7 +3908,10 @@ Serve.prototype.composer = function (opts, cb) { ids[branch] = true }) links.forEach(function (link) { - if (ids[link.key]) reply[link.key] = link.value.author + if (ids[link.key]) { + var author = link.value.author + if (author !== myId) reply[link.key] = author + } }) if (Object.keys(reply).length > 0) content.reply = reply } |