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