Differential D13200 Diff 31965 src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
| Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | switch ($original_message->getCommand()) { | ||||
| if ($vote_ids) { | if ($vote_ids) { | ||||
| foreach ($vote_ids as $vote_id) { | foreach ($vote_ids as $vote_id) { | ||||
| $vote = $this->getConduit()->callMethodSynchronous( | $vote = $this->getConduit()->callMethodSynchronous( | ||||
| 'slowvote.info', | 'slowvote.info', | ||||
| array( | array( | ||||
| 'poll_id' => $vote_id, | 'poll_id' => $vote_id, | ||||
| )); | )); | ||||
| $output[$vote['phid']] = 'V'.$vote['id'].': '.$vote['question']. | $output[$vote['phid']] = 'V'.$vote['id'].': '.$vote['question']. | ||||
| ' Come Vote '.$vote['uri']; | ' '.pht('Come Vote').' '.$vote['uri']; | ||||
| } | } | ||||
| } | } | ||||
| if ($file_ids) { | if ($file_ids) { | ||||
| foreach ($file_ids as $file_id) { | foreach ($file_ids as $file_id) { | ||||
| $file = $this->getConduit()->callMethodSynchronous( | $file = $this->getConduit()->callMethodSynchronous( | ||||
| 'file.info', | 'file.info', | ||||
| array( | array( | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||