Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14850401
D8252.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
D8252.diff
View Options
Index: src/applications/feed/PhabricatorFeedStoryPublisher.php
===================================================================
--- src/applications/feed/PhabricatorFeedStoryPublisher.php
+++ src/applications/feed/PhabricatorFeedStoryPublisher.php
@@ -161,16 +161,16 @@
}
private function sendNotification($chrono_key) {
- $server_uri = PhabricatorEnv::getEnvConfig('notification.server-uri');
$data = array(
'key' => (string)$chrono_key,
);
- id(new HTTPSFuture($server_uri, $data))
- ->setMethod('POST')
- ->setTimeout(1)
- ->resolve();
+ try {
+ PhabricatorNotificationClient::postMessage($data);
+ } catch (Exception $ex) {
+ // Ignore, these are not critical.
+ }
}
/**
Index: src/applications/notification/client/PhabricatorNotificationClient.php
===================================================================
--- src/applications/notification/client/PhabricatorNotificationClient.php
+++ src/applications/notification/client/PhabricatorNotificationClient.php
@@ -25,4 +25,13 @@
return $status;
}
+ public static function postMessage(array $data) {
+ $server_uri = PhabricatorEnv::getEnvConfig('notification.server-uri');
+
+ id(new HTTPSFuture($server_uri, $data))
+ ->setMethod('POST')
+ ->setTimeout(1)
+ ->resolvex();
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 5:38 AM (19 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7091726
Default Alt Text
D8252.diff (1 KB)
Attached To
Mode
D8252: Move message posting to PhabricatorNotificationClient
Attached
Detach File
Event Timeline
Log In to Comment