mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
23 lines
543 B
PHP
23 lines
543 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionInlineCommentPreviewController
|
||
|
extends PhabricatorInlineCommentPreviewController {
|
||
|
|
||
|
private $commitPHID;
|
||
|
|
||
|
public function willProcessRequest(array $data) {
|
||
|
$this->commitPHID = $data['phid'];
|
||
|
}
|
||
|
|
||
|
protected function loadInlineComments() {
|
||
|
$user = $this->getRequest()->getUser();
|
||
|
|
||
|
$inlines = id(new PhabricatorAuditInlineComment())->loadAllWhere(
|
||
|
'authorPHID = %s AND commitPHID = %s AND auditCommentID IS NULL',
|
||
|
$user->getPHID(),
|
||
|
$this->commitPHID);
|
||
|
|
||
|
return $inlines;
|
||
|
}
|
||
|
}
|