From 2e3089bba9ff20c52ff440f079fa6ad98b5f5163 Mon Sep 17 00:00:00 2001 From: CM Date: Sat, 28 Sep 2024 14:45:22 +0200 Subject: [PATCH 1/2] Push devcontainer version to php8.2 Signed-off-by: Christoph Mair --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index bffdc8744..4ccc0b60b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/juliushaertl/nextcloud-dev-php80:latest", + "image": "ghcr.io/juliushaertl/nextcloud-dev-php82:latest", "forwardPorts": [80], "containerEnv": { "NEXTCLOUD_AUTOINSTALL_APPS": "tables", From d4018ed4427b2cea4389ced1212ae2b4a8903ca5 Mon Sep 17 00:00:00 2001 From: Christoph Mair Date: Sat, 28 Sep 2024 15:11:44 +0200 Subject: [PATCH 2/2] re-add thumbnailUrl and icon to write those into the DB. Actually thumbnailUrl gets sent to the api but is dropped. Therefore no preview inside the table is possible anymore. Signed-off-by: Christoph Mair --- lib/Service/ColumnTypes/TextLinkBusiness.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Service/ColumnTypes/TextLinkBusiness.php b/lib/Service/ColumnTypes/TextLinkBusiness.php index 52560eec5..606592c13 100644 --- a/lib/Service/ColumnTypes/TextLinkBusiness.php +++ b/lib/Service/ColumnTypes/TextLinkBusiness.php @@ -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',