@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 27 lines 677 B view raw
1<?php 2 3final class PhabricatorPasteTransactionComment 4 extends PhabricatorApplicationTransactionComment { 5 6 protected $lineNumber; 7 protected $lineLength; 8 9 public function getApplicationTransactionObject() { 10 return new PhabricatorPasteTransaction(); 11 } 12 13 public function shouldUseMarkupCache($field) { 14 // Only cache submitted comments. 15 return ($this->getTransactionPHID() != null); 16 } 17 18 protected function getConfiguration() { 19 $config = parent::getConfiguration(); 20 $config[self::CONFIG_COLUMN_SCHEMA] = array( 21 'lineNumber' => 'uint32?', 22 'lineLength' => 'uint32?', 23 ) + $config[self::CONFIG_COLUMN_SCHEMA]; 24 return $config; 25 } 26 27}