From 4a786f48de48f195c41a1aba815376b64f7cb177 Mon Sep 17 00:00:00 2001 From: Nick Harper Date: Wed, 29 Aug 2012 11:04:19 -0700 Subject: [PATCH] Use paste.query for arc paste Summary: paste.info is deprecated; switch to using paste.query Test Plan: arc paste P123 arc paste P123 --json Reviewers: epriestley, vrana Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3402 --- src/workflow/ArcanistPasteWorkflow.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/workflow/ArcanistPasteWorkflow.php b/src/workflow/ArcanistPasteWorkflow.php index 0a77a4d0..b030a7ad 100644 --- a/src/workflow/ArcanistPasteWorkflow.php +++ b/src/workflow/ArcanistPasteWorkflow.php @@ -119,10 +119,11 @@ EOTEXT $conduit = $this->getConduit(); $info = $conduit->callMethodSynchronous( - 'paste.info', + 'paste.query', array( - 'paste_id' => $this->id, + 'ids' => array($this->id), )); + $info = head($info); if ($this->getJSON()) { echo json_encode($info)."\n";