@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Chad Little and committed by
chad
7732f9c0 1443e4b1

+1 -1
+1 -1
src/applications/phame/controller/PhameHomeController.php
··· 85 85 ->setViewer($viewer); 86 86 87 87 $draft_list = null; 88 - if ($viewer->isLoggedIn()) { 88 + if ($viewer->isLoggedIn() && $blogs) { 89 89 $drafts = id(new PhamePostQuery()) 90 90 ->setViewer($viewer) 91 91 ->withBloggerPHIDs(array($viewer->getPHID()))