diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-03-24 14:12:32 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-03-28 13:55:29 -0400 |
commit | 299e45bd399be4986b40a7c95c9dd92b3a71acbd (patch) | |
tree | 3a63393e3533a25ba75490e332eff772c7931854 /lib | |
parent | f97cda0d14184878c8466409c588de39a7651b15 (diff) | |
download | patchfoo-299e45bd399be4986b40a7c95c9dd92b3a71acbd.tar.gz patchfoo-299e45bd399be4986b40a7c95c9dd92b3a71acbd.zip |
Don't auto-mention self in gathering thread
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 e05cc56..e593f64 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -4558,7 +4558,10 @@ Serve.prototype.composer = function (opts, cb) { } if (data.mention_attendees) { - var attendeeLinks = u.toLinkArray(String(data.attendees || '').split(',')) + var attendeeLinks = u.toArray(String(data.attendees || '').split(',')) + .filter(function (id) { + return id !== myId + }) if (!content.mentions) content.mentions = attendeeLinks else { var alreadyMentioned = {} |