Skip to content

Commit

Permalink
Merge pull request #6643 from nextcloud/backport/5859/stable27
Browse files Browse the repository at this point in the history
[stable27] Update TrelloJsonService.php
  • Loading branch information
juliusknorr authored Jan 2, 2025
2 parents 4999652 + 1bbc19f commit 89bb483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/Importer/Systems/TrelloJsonService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 89bb483

Please sign in to comment.