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
Sat, Oct 19, 1:13 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6732290
Default Alt Text
D18001.diff (1 KB)

Event Timeline