@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
at upstream/main 21 lines 507 B view raw
1<?php 2 3final class DifferentialRevisionDraftEngine 4 extends PhabricatorDraftEngine { 5 6 protected function hasCustomDraftContent() { 7 $viewer = $this->getViewer(); 8 $revision = $this->getObject(); 9 10 $inlines = id(new DifferentialDiffInlineCommentQuery()) 11 ->setViewer($viewer) 12 ->withRevisionPHIDs(array($revision->getPHID())) 13 ->withPublishableComments(true) 14 ->setReturnPartialResultsOnOverheat(true) 15 ->setLimit(1) 16 ->execute(); 17 18 return (bool)$inlines; 19 } 20 21}