Be explicit about the resize method

Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Jorik Schellekens 2020-09-24 10:48:01 +01:00 committed by GitHub
parent 50f51d373f
commit ae788e16d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ export function getThumbnailURI(
throw new Error(`mxc invalid. mxc: ${mxcId}`); throw new Error(`mxc invalid. mxc: ${mxcId}`);
} }
// eslint-disable-next-line max-len // eslint-disable-next-line max-len
return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}`; return `https://${clientURL}/_matrix/media/r0/thumbnail/${mxcParse.groups.server}/${mxcParse.groups.mediaId}?height=${height}&width=${width}&method=crop`;
} }