Skip to content

Commit

Permalink
fix(Thumbnails): Use correct local id rather than remote id
Browse files Browse the repository at this point in the history
Fixes #13743

Signed-off-by: Josh <josh.t.richards@gmail.com>
  • Loading branch information
joshtrichards authored and backportbot[bot] committed Dec 5, 2024
1 parent 27240aa commit 8b6ab2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ private static Bitmap doResizedImageInBackground(OCFile file, FileDataStorageMan
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);
Expand Down

0 comments on commit 8b6ab2b

Please sign in to comment.