diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-26 15:21:17 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-26 15:25:38 +0100 |
commit | 3c357f80c4c60e6d44471e385054307a82131673 (patch) | |
tree | 798c1ab0216c587526b69d5f7b0d352610cabd7a | |
parent | 08319ad5a6f9075e3afe9dd74ccfef147d447eea (diff) | |
download | nextcloud-server-fix/harden-thumbnail-endpoint.tar.gz nextcloud-server-fix/harden-thumbnail-endpoint.zip |
chore(files): Deprecate thumbnail endpoint in favor of core preview endpointfix/harden-thumbnail-endpoint
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 1 | ||||
-rw-r--r-- | apps/files/openapi.json | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 9b9a0980389..9c683b7f41f 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -75,6 +75,7 @@ class ApiController extends Controller { * Gets a thumbnail of the specified file * * @since API version 1.0 + * @deprecated 32.0.0 Use the preview endpoint provided by core instead * * @param int $x Width of the thumbnail * @param int $y Height of the thumbnail diff --git a/apps/files/openapi.json b/apps/files/openapi.json index c7f0e53d821..5766b1cce13 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -429,6 +429,7 @@ "get": { "operationId": "api-get-thumbnail", "summary": "Gets a thumbnail of the specified file", + "deprecated": true, "tags": [ "api" ], |