Differential D16036 Diff 38602 src/applications/notification/controller/PhabricatorNotificationIndividualController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/controller/PhabricatorNotificationIndividualController.php
| Show All 24 Lines | if ($story->getAuthorPHID() === $viewer->getPHID()) { | ||||
| // TODO: It would be nice to retain the "page updated" bubble on copies | // TODO: It would be nice to retain the "page updated" bubble on copies | ||||
| // of the page that are open in other tabs, but there isn't an obvious | // of the page that are open in other tabs, but there isn't an obvious | ||||
| // way to do this easily. | // way to do this easily. | ||||
| return $this->buildEmptyResponse(); | return $this->buildEmptyResponse(); | ||||
| } | } | ||||
| $builder = new PhabricatorNotificationBuilder(array($story)); | $builder = id(new PhabricatorNotificationBuilder(array($story))) | ||||
| ->setUser($viewer); | |||||
| $content = $builder->buildView()->render(); | $content = $builder->buildView()->render(); | ||||
| $dict = $builder->buildDict(); | $dict = $builder->buildDict(); | ||||
| $data = $dict[0]; | $data = $dict[0]; | ||||
| $response = array( | $response = array( | ||||
| 'pertinent' => true, | 'pertinent' => true, | ||||
| 'primaryObjectPHID' => $story->getPrimaryObjectPHID(), | 'primaryObjectPHID' => $story->getPrimaryObjectPHID(), | ||||
| 'desktopReady' => $data['desktopReady'], | 'desktopReady' => $data['desktopReady'], | ||||
| Show All 18 Lines | |||||