diff --git a/lib/Service/Importer/Systems/TrelloJsonService.php b/lib/Service/Importer/Systems/TrelloJsonService.php index 71c897cec..e10e0906d 100644 --- a/lib/Service/Importer/Systems/TrelloJsonService.php +++ b/lib/Service/Importer/Systems/TrelloJsonService.php @@ -133,7 +133,7 @@ function (\stdClass $a) use ($trelloCard) { $cardId = $this->cards[$trelloCard->id]->getId(); $comment = new Comment(); if (!empty($this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username})) { - $actor = $this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username}->getUID(); + $actor = $this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username}; } else { $actor = $this->getImportService()->getConfig('owner')->getUID(); } @@ -361,7 +361,7 @@ private function translateColor(?string $color): string { private function replaceUsernames(string $text): string { foreach ($this->getImportService()->getConfig('uidRelation') as $trello => $nextcloud) { - $text = str_replace($trello, $nextcloud->getUID(), $text); + $text = str_replace($trello, $nextcloud, $text); } return $text; }