Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13976193
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
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)
Attached To
Mode
D18001: Avoid multiple JIRA notifications
Attached
Detach File
Event Timeline
Log In to Comment