mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-05 03:18:25 +01:00
7427a6e648
Summary: Ref T2009. Ref T1460. Replace hard-coded garbage with a real Query-layer query. Test Plan: Submitted inline comments in Differential. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2009, T1460 Differential Revision: https://secure.phabricator.com/D12027
24 lines
639 B
PHP
24 lines
639 B
PHP
<?php
|
|
|
|
final class DifferentialTransactionQuery
|
|
extends PhabricatorApplicationTransactionQuery {
|
|
|
|
public function getTemplateApplicationTransaction() {
|
|
return new DifferentialTransaction();
|
|
}
|
|
|
|
public static function loadUnsubmittedInlineComments(
|
|
PhabricatorUser $viewer,
|
|
DifferentialRevision $revision) {
|
|
|
|
return id(new DifferentialDiffInlineCommentQuery())
|
|
->setViewer($viewer)
|
|
->withRevisionPHIDs(array($revision->getPHID()))
|
|
->withAuthorPHIDs(array($viewer->getPHID()))
|
|
->withHasTransaction(false)
|
|
->withIsDeleted(false)
|
|
->needReplyToComments(true)
|
|
->execute();
|
|
}
|
|
|
|
}
|