@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
at upstream/main 28 lines 635 B view raw
1<?php 2 3final class ConpherenceThreadMailReceiver 4 extends PhabricatorObjectMailReceiver { 5 6 public function isEnabled() { 7 return PhabricatorApplication::isClassInstalled( 8 PhabricatorConpherenceApplication::class); 9 } 10 11 protected function getObjectPattern() { 12 return 'Z[1-9]\d*'; 13 } 14 15 protected function loadObject($pattern, PhabricatorUser $viewer) { 16 $id = (int)substr($pattern, 1); 17 18 return id(new ConpherenceThreadQuery()) 19 ->setViewer($viewer) 20 ->withIDs(array($id)) 21 ->executeOne(); 22 } 23 24 protected function getTransactionReplyHandler() { 25 return new ConpherenceReplyHandler(); 26 } 27 28}