diff --git a/lib/Service/Importer/Systems/TrelloJsonService.php b/lib/Service/Importer/Systems/TrelloJsonService.php index 1693b6c4e..25aa14105 100644 --- a/lib/Service/Importer/Systems/TrelloJsonService.php +++ b/lib/Service/Importer/Systems/TrelloJsonService.php @@ -117,7 +117,7 @@ class TrelloJsonService extends ABoardImportService { $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(); } @@ -345,7 +345,7 @@ class TrelloJsonService extends ABoardImportService { 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; }