Merge pull request #14081 from nextcloud/fix/thumbnails-cache-resize-localid

fix(Thumbnails): Use local id rather than remote id
This commit is contained in:
Tobias Kaminsky 2024-12-05 13:31:30 +01:00 committed by GitHub
commit 581b258952
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1400,7 +1400,7 @@ public final class ThumbnailsCacheManager {
GetMethod getMethod = null;
try {
String uri = mClient.getBaseUri() + "/index.php/core/preview?fileId="
+ file.getRemoteId()
+ file.getLocalId()
+ "&x=" + (pxW / 2) + "&y=" + (pxH / 2) + "&a=1&mode=cover&forceIcon=0";
Log_OC.d(TAG, "generate resized image: " + file.getFileName() + " URI: " + uri);
getMethod = new GetMethod(uri);