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:
parent
2c56bbdbca
commit
d1d3bf4eb1
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue