Skip to content

Commit

Permalink
Merge pull request #6644 from nextcloud/backport/5859/stable28
Browse files Browse the repository at this point in the history
[stable28] Update TrelloJsonService.php
  • Loading branch information
juliusknorr authored Jan 2, 2025
2 parents 90decfd + 3f66c16 commit 67b3c9c
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 67b3c9c

Please sign in to comment.