Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/blog/PhameBlogFeedController.php
| Show All 15 Lines | $blog = id(new PhameBlogQuery()) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$blog) { | if (!$blog) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| $posts = id(new PhamePostQuery()) | $posts = id(new PhamePostQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withBlogPHIDs(array($blog->getPHID())) | ->withBlogPHIDs(array($blog->getPHID())) | ||||
| ->withVisibility(PhameConstants::VISIBILITY_PUBLISHED) | ->withVisibility(array(PhameConstants::VISIBILITY_PUBLISHED)) | ||||
| ->execute(); | ->execute(); | ||||
| $blog_uri = PhabricatorEnv::getProductionURI( | $blog_uri = PhabricatorEnv::getProductionURI( | ||||
| $this->getApplicationURI('blog/feed/'.$blog->getID().'/')); | $this->getApplicationURI('blog/feed/'.$blog->getID().'/')); | ||||
| $content = array(); | $content = array(); | ||||
| $content[] = phutil_tag('title', array(), $blog->getName()); | $content[] = phutil_tag('title', array(), $blog->getName()); | ||||
| $content[] = phutil_tag('id', array(), $blog_uri); | $content[] = phutil_tag('id', array(), $blog_uri); | ||||
| $content[] = phutil_tag('link', | $content[] = phutil_tag('link', | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||