mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-23 03:59:25 +01:00
Load changesets with inline comments drafts in large diff
Test Plan: Displayed a large diff with inline comment draft. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3175
This commit is contained in:
parent
f614670de9
commit
6361ffedaa
1 changed files with 8 additions and 1 deletions
|
@ -200,8 +200,15 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
|||
"</strong>");
|
||||
$warning = $warning->render();
|
||||
|
||||
$my_inlines = id(new DifferentialInlineComment())->loadAllWhere(
|
||||
'revisionID = %d AND commentID IS NULL AND authorPHID = %s AND '.
|
||||
'changesetID IN (%Ld)',
|
||||
$this->revisionID,
|
||||
$user->getPHID(),
|
||||
mpull($changesets, 'getID'));
|
||||
|
||||
$visible_changesets = array();
|
||||
foreach ($inlines as $inline) {
|
||||
foreach ($inlines + $my_inlines as $inline) {
|
||||
$changeset_id = $inline->getChangesetID();
|
||||
if (isset($changesets[$changeset_id])) {
|
||||
$visible_changesets[$changeset_id] = $changesets[$changeset_id];
|
||||
|
|
Loading…
Add table
Reference in a new issue