Merge pull request #5859 from mulles/patch-1

Update TrelloJsonService.php
This commit is contained in:
Julius Knorr
2025-01-02 15:58:42 +01:00
committed by GitHub

View File

@@ -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;
}