1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

Minor, fix a Conduit issue with the bot?

Test Plan: do it live
This commit is contained in:
epriestley 2014-06-23 16:56:20 -07:00
parent 2c56bbdbca
commit d1d3bf4eb1

View file

@ -59,6 +59,7 @@ final class PhabricatorBot extends PhabricatorDaemon {
// domain without the "/api/" part.
$conduit_uri = new PhutilURI($conduit_uri);
$conduit_uri->setPath('/api/');
$conduit_host = $conduit_uri->getDomain();
$conduit_uri = (string)$conduit_uri;
$conduit = new ConduitClient($conduit_uri);
@ -68,6 +69,7 @@ final class PhabricatorBot extends PhabricatorDaemon {
'client' => 'PhabricatorBot',
'clientVersion' => '1.0',
'clientDescription' => php_uname('n').':'.$nick,
'host' => $conduit_host,
'user' => $conduit_user,
'certificate' => $conduit_cert,
));