Skip to content

Commit

Permalink
re-add thumbnailUrl and icon to write those into the DB.
Browse files Browse the repository at this point in the history
Actually thumbnailUrl gets sent to the api but is dropped. Therefore no preview inside the table is possible anymore.
  • Loading branch information
Christoph Mair committed Sep 28, 2024
1 parent 4d78dc7 commit 1aa7c66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/ColumnTypes/TextLinkBusiness.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function parseValue($value, ?Column $column = null): string {
if($data !== null) {
if (isset($data['resourceUrl'])) {
return json_encode(json_encode([
'thumbnailUrl' => $data['thumbnailUrl'],
'icon' => $data['icon'],
'title' => $data['title'] ?? $data['resourceUrl'],
'value' => $data['resourceUrl'],
'providerId' => 'url',
Expand Down

0 comments on commit 1aa7c66

Please sign in to comment.