Page MenuHomePhabricator

D8252.id19632.diff
No OneTemporary

D8252.id19632.diff

diff --git a/src/applications/feed/PhabricatorFeedStoryPublisher.php b/src/applications/feed/PhabricatorFeedStoryPublisher.php
--- a/src/applications/feed/PhabricatorFeedStoryPublisher.php
+++ b/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.
+ }
}
/**
diff --git a/src/applications/notification/client/PhabricatorNotificationClient.php b/src/applications/notification/client/PhabricatorNotificationClient.php
--- a/src/applications/notification/client/PhabricatorNotificationClient.php
+++ b/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

Mime Type
text/plain
Expires
Mon, Mar 24, 2:22 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705739
Default Alt Text
D8252.id19632.diff (1 KB)

Event Timeline