Something went wrong. Try again.
@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
Something went wrong. Try again.
493 B · 21 lines
PHP
12345678910111213141516171819202122<?php
final class DiffusionCommitDraftEngine extends PhabricatorDraftEngine {
protected function hasCustomDraftContent() { $viewer = $this->getViewer(); $commit = $this->getObject();
$inlines = id(new DiffusionDiffInlineCommentQuery()) ->setViewer($viewer) ->withCommitPHIDs(array($commit->getPHID())) ->withPublishableComments(true) ->setReturnPartialResultsOnOverheat(true) ->setLimit(1) ->execute();
return (bool)$inlines; }
}