Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14396034
D18001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18001.diff
View Options
diff --git a/src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php b/src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
--- a/src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
+++ b/src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
@@ -88,17 +88,21 @@
$accounts = mpull($accounts, null, 'getUserPHID');
$accounts = array_select_keys($accounts, $try_users);
+ $commentPosted = false;
+ $linkPosted = false;
foreach ($xobj_list as $xobj) {
foreach ($accounts as $account) {
try {
$jira_key = $xobj->getObjectID();
- if ($this->shouldPostComment()) {
+ if ($this->shouldPostComment() && !$commentPosted) {
$this->postComment($account, $jira_key);
+ $commentPosted = true;
}
- if ($this->shouldPostLink()) {
+ if ($this->shouldPostLink() && !$linkPosted) {
$this->postLink($account, $jira_key);
+ $linkPosted = true;
}
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 6:16 AM (17 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920775
Default Alt Text
D18001.diff (1 KB)
Attached To
Mode
D18001: Avoid multiple JIRA notifications
Attached
Detach File
Event Timeline
Log In to Comment