1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Make the "attach_inlines" parameter to "differential.createcomment" a no-op

Summary: Ref T13513. See that task for some discussion. This prepares to lift "loadUnsubmittedInlineComments(...)" into shared code.

Test Plan: Grepped for callers, found none in the upstream. This is a backward compatibilty break. See T13513.

Maniphest Tasks: T13513

Differential Revision: https://secure.phabricator.com/D21225
This commit is contained in:
epriestley 2020-05-06 11:23:01 -07:00
parent 0067f1a521
commit 397648855f

View file

@ -94,17 +94,8 @@ final class DifferentialCreateCommentConduitAPIMethod
->setContent($content));
}
if ($request->getValue('attach_inlines')) {
$type_inline = DifferentialTransaction::TYPE_INLINE;
$inlines = DifferentialTransactionQuery::loadUnsubmittedInlineComments(
$viewer,
$revision);
foreach ($inlines as $inline) {
$xactions[] = id(new DifferentialTransaction())
->setTransactionType($type_inline)
->attachComment($inline);
}
}
// NOTE: The legacy "attach_inlines" flag is now ignored and has no
// effect. See T13513.
// NOTE: The legacy "silent" flag is now ignored and has no effect. See
// T13042.