mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
e9ac3f436a
Summary: Ref T1191. Nothing too exciting in these. Test Plan: Saw more blue in UI. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10521
25 lines
647 B
PHP
25 lines
647 B
PHP
<?php
|
|
|
|
final class PhabricatorFileTransactionComment
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
public function getApplicationTransactionObject() {
|
|
return new PhabricatorFileTransaction();
|
|
}
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
// Only cache submitted comments.
|
|
return ($this->getTransactionPHID() != null);
|
|
}
|
|
|
|
public function getConfiguration() {
|
|
$config = parent::getConfiguration();
|
|
$config[self::CONFIG_KEY_SCHEMA] = array(
|
|
'key_draft' => array(
|
|
'columns' => array('authorPHID', 'transactionPHID'),
|
|
),
|
|
) + $config[self::CONFIG_KEY_SCHEMA];
|
|
return $config;
|
|
}
|
|
|
|
}
|