Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/PhameLiveController.php
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | if ($post_id) { | ||||
| ->withIDs(array($post_id)); | ->withIDs(array($post_id)); | ||||
| if ($blog) { | if ($blog) { | ||||
| $post_query->withBlogPHIDs(array($blog->getPHID())); | $post_query->withBlogPHIDs(array($blog->getPHID())); | ||||
| } | } | ||||
| // Only show published posts on external domains. | // Only show published posts on external domains. | ||||
| if ($is_external) { | if ($is_external) { | ||||
| $post_query->withVisibility(PhameConstants::VISIBILITY_PUBLISHED); | $post_query->withVisibility( | ||||
| array(PhameConstants::VISIBILITY_PUBLISHED)); | |||||
| } | } | ||||
| $post = $post_query->executeOne(); | $post = $post_query->executeOne(); | ||||
| if (!$post) { | if (!$post) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| // If this is a post detail page, the URI didn't come with a blog ID, | // If this is a post detail page, the URI didn't come with a blog ID, | ||||
| ▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines | |||||