Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitDraftEngine.php
| <?php | <?php | ||||
| final class DiffusionCommitDraftEngine | final class DiffusionCommitDraftEngine | ||||
| extends PhabricatorDraftEngine { | extends PhabricatorDraftEngine { | ||||
| protected function hasCustomDraftContent() { | protected function hasCustomDraftContent() { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $commit = $this->getObject(); | $commit = $this->getObject(); | ||||
| $inlines = id(new DiffusionDiffInlineCommentQuery()) | $inlines = id(new DiffusionDiffInlineCommentQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withCommitPHIDs(array($commit->getPHID())) | ->withCommitPHIDs(array($commit->getPHID())) | ||||
| ->withPublishableComments(true) | ->withPublishableComments(true) | ||||
| ->setReturnPartialResultsOnOverheat(true) | |||||
| ->setLimit(1) | ->setLimit(1) | ||||
| ->execute(); | ->execute(); | ||||
| return (bool)$inlines; | return (bool)$inlines; | ||||
| } | } | ||||
| } | } | ||||