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

Only show profile status when calendar app installed

Summary:
If the calendar app is not installed we don't show the status.
Origianlly the idea was to only show the status if the viewer had access to
the app, but for display purposes this seems fine.

Fixes T5087

Test Plan: View with and without calendar installed

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5087

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

authored by

Gareth Evans and committed by
epriestley
78635a15 baa998fa

+5
+5
src/applications/people/customfield/PhabricatorUserStatusField.php
··· 21 21 return true; 22 22 } 23 23 24 + public function isFieldEnabled() { 25 + return PhabricatorApplication::isClassInstalled( 26 + 'PhabricatorApplicationCalendar'); 27 + } 28 + 24 29 public function renderPropertyViewValue(array $handles) { 25 30 $user = $this->getObject(); 26 31 $viewer = $this->requireViewer();