diff --git a/src/infrastructure/daemon/bot/PhabricatorBot.php b/src/infrastructure/daemon/bot/PhabricatorBot.php index 1159726acb..6a803b22d6 100644 --- a/src/infrastructure/daemon/bot/PhabricatorBot.php +++ b/src/infrastructure/daemon/bot/PhabricatorBot.php @@ -107,7 +107,7 @@ final class PhabricatorBot extends PhabricatorDaemon { private function routeMessage(PhabricatorBotMessage $message) { $ignore = $this->getConfig('ignore'); - if ($ignore && in_array($message->getSenderNickName(), $ignore)) { + if ($ignore && in_array($message->getSender(), $ignore)) { return; } diff --git a/src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php b/src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php index 1c94d0c27b..74b280feff 100644 --- a/src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php +++ b/src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php @@ -118,6 +118,7 @@ extends PhabricatorBaseProtocolAdapter { return id(new PhabricatorBotMessage()) ->setCommand('MESSAGE') + ->setSender($m_obj['user_id']) ->setTarget($m_obj['room_id']) ->setBody($m_obj['body']); }