3 final class PhabricatorFeedDetailController
extends PhabricatorFeedController
{
5 public function handleRequest(AphrontRequest
$request) {
6 $viewer = $request->getViewer();
7 $id = $request->getURIData('id');
9 $story = id(new PhabricatorFeedQuery())
11 ->withChronologicalKeys(array($id))
14 return new Aphront404Response();
17 if ($request->getStr('text')) {
18 $text = $story->renderText();
19 return id(new AphrontPlainTextResponse())->setContent($text);
22 $feed = array($story);
23 $builder = new PhabricatorFeedBuilder($feed);
24 $builder->setUser($viewer);
25 $feed_view = $builder->buildView();
27 $title = pht('Story');
29 $crumbs = $this->buildApplicationCrumbs();
30 $crumbs->addTextCrumb($title);
32 return $this->newPage()
35 ->appendChild($feed_view);