diff --git a/src/infrastructure/daemon/bot/PhabricatorBot.php b/src/infrastructure/daemon/bot/PhabricatorBot.php index 78ccab5140..656c5861fd 100644 --- a/src/infrastructure/daemon/bot/PhabricatorBot.php +++ b/src/infrastructure/daemon/bot/PhabricatorBot.php @@ -107,8 +107,11 @@ final class PhabricatorBot extends PhabricatorDaemon { private function routeMessage(PhabricatorBotMessage $message) { $ignore = $this->getConfig('ignore'); - if ($ignore && in_array($message->getSender(), $ignore)) { - return; + if ($ignore) { + $sender = $message->getSender(); + if ($sender && in_array($sender->getName(), $ignore)) { + return; + } } foreach ($this->handlers as $handler) {