Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
| Context not available. | |||||
| $accounts = mpull($accounts, null, 'getUserPHID'); | $accounts = mpull($accounts, null, 'getUserPHID'); | ||||
| $accounts = array_select_keys($accounts, $try_users); | $accounts = array_select_keys($accounts, $try_users); | ||||
| $commentPosted = false; | |||||
| $linkPosted = false; | |||||
| foreach ($xobj_list as $xobj) { | foreach ($xobj_list as $xobj) { | ||||
| foreach ($accounts as $account) { | foreach ($accounts as $account) { | ||||
| try { | try { | ||||
| $jira_key = $xobj->getObjectID(); | $jira_key = $xobj->getObjectID(); | ||||
| if ($this->shouldPostComment()) { | if ($this->shouldPostComment() && !$commentPosted) { | ||||
| $this->postComment($account, $jira_key); | $this->postComment($account, $jira_key); | ||||
| $commentPosted = true; | |||||
| } | } | ||||
| if ($this->shouldPostLink()) { | if ($this->shouldPostLink() && !$linkPosted) { | ||||
| $this->postLink($account, $jira_key); | $this->postLink($account, $jira_key); | ||||
| $linkPosted = true; | |||||
| } | } | ||||
| break; | break; | ||||
| Context not available. | |||||