@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<?php
2
3abstract class DiffusionCommitRelationship
4 extends PhabricatorObjectRelationship {
5
6 public function isEnabledForObject($object) {
7 $viewer = $this->getViewer();
8
9 $has_app = PhabricatorApplication::isClassInstalledForViewer(
10 PhabricatorDiffusionApplication::class,
11 $viewer);
12 if (!$has_app) {
13 return false;
14 }
15
16 return ($object instanceof PhabricatorRepositoryCommit);
17 }
18
19}