Page MenuHomePhabricator

D18001.diff
No OneTemporary

D18001.diff

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

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)

Event Timeline