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

at upstream/main 28 lines 691 B view raw
1<?php 2 3final class PhabricatorAuditMailReceiver extends PhabricatorObjectMailReceiver { 4 5 public function isEnabled() { 6 return PhabricatorApplication::isClassInstalled( 7 PhabricatorDiffusionApplication::class); 8 } 9 10 protected function getObjectPattern() { 11 return 'COMMIT[1-9]\d*'; 12 } 13 14 protected function loadObject($pattern, PhabricatorUser $viewer) { 15 $id = (int)preg_replace('/^COMMIT/i', '', $pattern); 16 17 return id(new DiffusionCommitQuery()) 18 ->setViewer($viewer) 19 ->withIDs(array($id)) 20 ->needAuditRequests(true) 21 ->executeOne(); 22 } 23 24 protected function getTransactionReplyHandler() { 25 return new PhabricatorAuditReplyHandler(); 26 } 27 28}