mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
37a5c4b11a
Summary: Ref T3650. This adds a create transaction, transactions for metadata (title, langauge, view policy), and comments. Editor is used on all create /edit paths. Test Plan: made some pastes via web and email - yay. edited pastes - yay. verified txns showed up on pastes and in feed correctly. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T3516, T3650 Differential Revision: https://secure.phabricator.com/D6645
20 lines
431 B
PHP
20 lines
431 B
PHP
<?php
|
|
|
|
/**
|
|
* @group paste
|
|
*/
|
|
final class PhabricatorPasteTransactionComment
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
protected $lineNumber;
|
|
protected $lineLength;
|
|
|
|
public function getApplicationTransactionObject() {
|
|
return new PhabricatorPasteTransaction();
|
|
}
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
// Only cache submitted comments.
|
|
return ($this->getTransactionPHID() != null);
|
|
}
|
|
}
|