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.
712 B · 32 lines
PHP
at commit dfc8f8bc
123456789101112131415161718192021222324252627282930313233<?php
final class DiffusionInlineCommentPreviewController extends PhabricatorInlineCommentPreviewController {
protected function loadInlineComments() { $viewer = $this->getViewer();
return PhabricatorAuditInlineComment::loadDraftComments( $viewer, $this->getCommitPHID()); }
protected function loadObjectOwnerPHID() { $viewer = $this->getViewer();
$commit = id(new DiffusionCommitQuery()) ->setViewer($viewer) ->withPHIDs(array($this->getCommitPHID())) ->executeOne(); if (!$commit) { return null; }
return $commit->getAuthorPHID(); }
private function getCommitPHID() { return $this->getRequest()->getURIData('phid'); }
}