Differential D17722 Diff 42625 src/applications/notification/controller/PhabricatorNotificationIndividualController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationIndividualController.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | $response = array( | ||||
'pertinent' => true, | 'pertinent' => true, | ||||
'primaryObjectPHID' => $story->getPrimaryObjectPHID(), | 'primaryObjectPHID' => $story->getPrimaryObjectPHID(), | ||||
'desktopReady' => $data['desktopReady'], | 'desktopReady' => $data['desktopReady'], | ||||
'href' => $data['href'], | 'href' => $data['href'], | ||||
'icon' => $data['icon'], | 'icon' => $data['icon'], | ||||
'title' => $data['title'], | 'title' => $data['title'], | ||||
'body' => $data['body'], | 'body' => $data['body'], | ||||
'content' => hsprintf('%s', $content), | 'content' => hsprintf('%s', $content), | ||||
'uniqueID' => 'story/'.$story->getChronologicalKey(), | |||||
); | ); | ||||
return id(new AphrontAjaxResponse())->setContent($response); | return id(new AphrontAjaxResponse())->setContent($response); | ||||
} | } | ||||
private function buildEmptyResponse() { | private function buildEmptyResponse() { | ||||
return id(new AphrontAjaxResponse())->setContent( | return id(new AphrontAjaxResponse())->setContent( | ||||
array( | array( | ||||
'pertinent' => false, | 'pertinent' => false, | ||||
)); | )); | ||||
} | } | ||||
} | } |