mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Fix bad query on PhameHome with no Blogs
Summary: We're checking for drafts even though we already know there are no blogs, just skip the query. Test Plan: trucate phame_blogs; See proper blank state. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14908
This commit is contained in:
parent
1443e4b13d
commit
7732f9c03c
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ final class PhameHomeController extends PhamePostController {
|
|||
->setViewer($viewer);
|
||||
|
||||
$draft_list = null;
|
||||
if ($viewer->isLoggedIn()) {
|
||||
if ($viewer->isLoggedIn() && $blogs) {
|
||||
$drafts = id(new PhamePostQuery())
|
||||
->setViewer($viewer)
|
||||
->withBloggerPHIDs(array($viewer->getPHID()))
|
||||
|
|
Loading…
Reference in a new issue