@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.

Check for calendar before settings status

Summary:
We should not show the status line in the people hover card
if the calendar app has been uninstalled or is not available for the
current user.

Test Plan:
View hover card with calendar installed and uninstalled.
Make sure I see the status at the correct time.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, chad, Korvin

Maniphest Tasks: T5370

Differential Revision: https://secure.phabricator.com/D9577

authored by

Gareth Evans and committed by
epriestley
824b8108 657d061a

+3 -1
+3 -1
src/applications/people/event/PhabricatorPeopleHovercardEventListener.php
··· 37 37 $hovercard->addField(pht('Account'), pht('Disabled')); 38 38 } else if (!$user->isUserActivated()) { 39 39 $hovercard->addField(pht('Account'), pht('Not Activated')); 40 - } else { 40 + } else if (PhabricatorApplication::isClassInstalledForViewer( 41 + 'PhabricatorApplicationCalendar', 42 + $viewer)) { 41 43 $statuses = id(new PhabricatorCalendarEvent())->loadCurrentStatuses( 42 44 array($user->getPHID())); 43 45 if ($statuses) {