Enhanced PholioMockQuery
Summary: Images and cover files can now be attached calling need functions for PholioMockQuery. Mock list will show cover files for mocks. MockView uses new feature to show the first image Test Plan: Verified that images are shown. Reviewers: epriestley CC: aran, Korvin Maniphest Tasks: T2364 Differential Revision: https://secure.phabricator.com/D4644
This commit is contained in:
committed by
epriestley
parent
9d23a49c91
commit
3838e14ad8
@@ -18,6 +18,8 @@ final class PholioMockViewController extends PholioController {
|
||||
$mock = id(new PholioMockQuery())
|
||||
->setViewer($user)
|
||||
->withIDs(array($this->id))
|
||||
->needImages(true)
|
||||
->needCoverFiles(true)
|
||||
->executeOne();
|
||||
|
||||
if (!$mock) {
|
||||
|
||||
Reference in New Issue
Block a user