Differential D9967 Diff 23950 src/applications/notification/client/PhabricatorNotificationClient.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/client/PhabricatorNotificationClient.php
| Show All 34 Lines | public static function tryToPostMessage(array $data) { | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| // Just ignore any issues here. | // Just ignore any issues here. | ||||
| phlog($ex); | phlog($ex); | ||||
| } | } | ||||
| } | } | ||||
| private static function postMessage(array $data) { | private static function postMessage(array $data) { | ||||
| $server_uri = PhabricatorEnv::getEnvConfig('notification.server-uri'); | $server_uri = PhabricatorEnv::getEnvConfig('notification.server-uri'); | ||||
| $server_uri = id(new PhutilURI($server_uri)) | |||||
| ->setPath('/'); | |||||
| id(new HTTPSFuture($server_uri, json_encode($data))) | id(new HTTPSFuture($server_uri, json_encode($data))) | ||||
| ->setMethod('POST') | ->setMethod('POST') | ||||
| ->setTimeout(1) | ->setTimeout(1) | ||||
| ->resolvex(); | ->resolvex(); | ||||
| } | } | ||||
| } | } | ||||