3 final class PhamePostHistoryController
extends PhamePostController
{
5 public function shouldAllowPublic() {
9 public function handleRequest(AphrontRequest
$request) {
10 $viewer = $request->getViewer();
12 $post = id(new PhamePostQuery())
14 ->withIDs(array($request->getURIData('id')))
18 return new Aphront404Response();
21 $blog = $post->getBlog();
23 $crumbs = $this->buildApplicationCrumbs();
25 $crumbs->addTextCrumb(
27 $this->getApplicationURI('blog/view/'.$blog->getID().'/'));
29 $crumbs->addTextCrumb(
33 $crumbs->addTextCrumb(
35 $this->getApplicationURI('post/view/'.$post->getID().'/'));
36 $crumbs->addTextCrumb(pht('Post History'));
37 $crumbs->setBorder(true);
39 $timeline = $this->buildTransactionTimeline(
41 new PhamePostTransactionQuery());
42 $timeline->setShouldTerminate(true);
44 return $this->newPage()
45 ->setTitle($post->getTitle())
46 ->setPageObjectPHIDs(array($post->getPHID()))