Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/query/PhamePostQuery.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | public function needHeaderImage($need) { | ||||
$this->needHeaderImage = $need; | $this->needHeaderImage = $need; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function newResultObject() { | public function newResultObject() { | ||||
return new PhamePost(); | return new PhamePost(); | ||||
} | } | ||||
protected function loadPage() { | |||||
return $this->loadStandardPage($this->newResultObject()); | |||||
} | |||||
protected function willFilterPage(array $posts) { | protected function willFilterPage(array $posts) { | ||||
// We require blogs to do visibility checks, so load them unconditionally. | // We require blogs to do visibility checks, so load them unconditionally. | ||||
$blog_phids = mpull($posts, 'getBlogPHID'); | $blog_phids = mpull($posts, 'getBlogPHID'); | ||||
$blogs = id(new PhameBlogQuery()) | $blogs = id(new PhameBlogQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->needProfileImage(true) | ->needProfileImage(true) | ||||
->withPHIDs($blog_phids) | ->withPHIDs($blog_phids) | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |