Changeset View
Changeset View
Standalone View
Standalone View
src/applications/feed/PhabricatorFeedStoryPublisher.php
| Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | VALUES %Q', | ||||
| $notif->getTableName(), | $notif->getTableName(), | ||||
| implode(', ', $sql)); | implode(', ', $sql)); | ||||
| } | } | ||||
| private function sendNotification($chrono_key) { | private function sendNotification($chrono_key) { | ||||
| $data = array( | $data = array( | ||||
| 'key' => (string)$chrono_key, | 'key' => (string)$chrono_key, | ||||
| 'type' => 'notification', | 'type' => 'notification', | ||||
| 'subscribers' => $this->subscribedPHIDs, | 'subscribers' => array_values($this->subscribedPHIDs), | ||||
| ); | ); | ||||
| PhabricatorNotificationClient::tryToPostMessage($data); | PhabricatorNotificationClient::tryToPostMessage($data); | ||||
| } | } | ||||
| /** | /** | ||||
| * We generate a unique chronological key for each story type because we want | * We generate a unique chronological key for each story type because we want | ||||
| * to be able to page through the stream with a cursor (i.e., select stories | * to be able to page through the stream with a cursor (i.e., select stories | ||||
| Show All 40 Lines | |||||