@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
3final class ManiphestTaskMailReceiver extends PhabricatorObjectMailReceiver {
4
5 public function isEnabled() {
6 return PhabricatorApplication::isClassInstalled(
7 PhabricatorManiphestApplication::class);
8 }
9
10 protected function getObjectPattern() {
11 return 'T[1-9]\d*';
12 }
13
14 protected function loadObject($pattern, PhabricatorUser $viewer) {
15 $id = (int)substr($pattern, 1);
16
17 return id(new ManiphestTaskQuery())
18 ->setViewer($viewer)
19 ->withIDs(array($id))
20 ->needSubscriberPHIDs(true)
21 ->needProjectPHIDs(true)
22 ->executeOne();
23 }
24
25 protected function getTransactionReplyHandler() {
26 return new ManiphestReplyHandler();
27 }
28
29}