@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 72 lines 1.6 kB view raw
1<?php 2 3final class PhabricatorAuditInlineComment 4 extends PhabricatorInlineComment { 5 6 protected function newStorageObject() { 7 return new PhabricatorAuditTransactionComment(); 8 } 9 10 public function getControllerURI() { 11 return urisprintf( 12 '/diffusion/inline/edit/%s/', 13 $this->getCommitPHID()); 14 } 15 16 public function supportsHiding() { 17 return false; 18 } 19 20 public function isHidden() { 21 return false; 22 } 23 24 public function getTransactionCommentForSave() { 25 $content_source = PhabricatorContentSource::newForSource( 26 PhabricatorOldWorldContentSource::SOURCECONST); 27 28 $this->getStorageObject() 29 ->setViewPolicy('public') 30 ->setEditPolicy($this->getAuthorPHID()) 31 ->setContentSource($content_source) 32 ->setCommentVersion(1); 33 34 return $this->getStorageObject(); 35 } 36 37 public static function newFromModernComment( 38 PhabricatorAuditTransactionComment $comment) { 39 40 $obj = new PhabricatorAuditInlineComment(); 41 $obj->setStorageObject($comment); 42 43 return $obj; 44 } 45 46 public function setPathID($id) { 47 $this->getStorageObject()->setPathID($id); 48 return $this; 49 } 50 51 public function getPathID() { 52 return $this->getStorageObject()->getPathID(); 53 } 54 55 public function setCommitPHID($commit_phid) { 56 $this->getStorageObject()->setCommitPHID($commit_phid); 57 return $this; 58 } 59 60 public function getCommitPHID() { 61 return $this->getStorageObject()->getCommitPHID(); 62 } 63 64 public function setChangesetID($id) { 65 return $this->setPathID($id); 66 } 67 68 public function getChangesetID() { 69 return $this->getPathID(); 70 } 71 72}