Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/PhameLiveController.php
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | protected function setupLiveEnvironment() { | ||||
} | } | ||||
$this->isExternal = $is_external; | $this->isExternal = $is_external; | ||||
$this->isLive = $is_live; | $this->isLive = $is_live; | ||||
if (strlen($post_id)) { | if (strlen($post_id)) { | ||||
$post_query = id(new PhamePostQuery()) | $post_query = id(new PhamePostQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->needHeaderImage(true) | |||||
->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) { | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |