blogPHID = $blog_phid; return $this; } private function getBlogPHID() { return $this->blogPHID; } protected function getSideNavFilter() { $filter = 'blog/view/'.$this->getBlogPHID(); return $filter; } protected function getSideNavExtraBlogFilters() { $filters = array( array('key' => $this->getSideNavFilter(), 'name' => $this->getPhameTitle()) ); return $filters; } public function willProcessRequest(array $data) { $this->setBlogPHID(idx($data, 'phid')); } public function processRequest() { $request = $this->getRequest(); $user = $request->getUser(); $blog = id(new PhameBlogQuery()) ->setViewer($user) ->withPHIDs(array($this->getBlogPHID())) ->executeOne(); if (!$blog) { return new Aphront404Response(); } $posts = id(new PhamePostQuery()) ->setViewer($user) ->withBlogPHIDs(array($blog->getPHID())) ->execute(); $skin = $blog->getSkinRenderer(); $skin ->setUser($this->getRequest()->getUser()) ->setBloggers($this->loadViewerHandles(mpull($posts, 'getBloggerPHID'))) ->setPosts($posts) ->setBlog($blog) ->setRequestURI($this->getRequest()->getRequestURI()); $this->setShowSideNav(false); $this->setShowChrome($skin->getShowChrome()); $this->setDeviceReady($skin->getDeviceReady()); $skin->setIsExternalDomain($blog->getDomain() == $request->getHost()); return $this->buildStandardPageResponse( array( $skin ), array( 'title' => $blog->getName(), )); } }